Ruby on rails Puma:iptables端口3000有问题
我对使用此配置的iptables和puma(端口3000)有问题:Ruby on rails Puma:iptables端口3000有问题,ruby-on-rails,debian,iptables,puma,Ruby On Rails,Debian,Iptables,Puma,我对使用此配置的iptables和puma(端口3000)有问题: Chain INPUT (policy DROP 18 packets, 1982 bytes) pkts bytes target prot opt in out source destination 14 1076 ACCEPT all -- eth0 any anywhere anywhere
Chain INPUT (policy DROP 18 packets, 1982 bytes)
pkts bytes target prot opt in out source destination
14 1076 ACCEPT all -- eth0 any anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:ssh state NEW,ESTABLISHED
0 0 ACCEPT all -- lo any anywhere anywhere
0 0 ACCEPT tcp -- any any *.*.*.* anywhere
0 0 ACCEPT tcp -- any any *.*.*.* anywhere
0 0 ACCEPT tcp -- any any *.*.*.* anywhere
0 0 ACCEPT tcp -- any any *.*.*.* anywhere
13 6666 ACCEPT tcp -- any any *.*.*.* anywhere tcp dpt:3000 state NEW,ESTABLISHED
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 31 packets, 2646 bytes)
pkts bytes target prot opt in out source destination
当我尝试从授权ip访问端口3000时,没有返回任何数据。但当我使用nmap检查端口3000是否打开时。我是否在iptables中错误配置了某些内容?谢谢。我只是想知道这是否是一种开发配置,以及如何启动rails服务器(哪个命令)?您能否发布
netstat-anpt
和iptables save
?netstat-anpthttps://gist.github.com/itsmechlark/4ef6aa0eefc8feac83db
iptables保存https://gist.github.com/itsmechlark/6c81de14fd99fb17d2ea
BTW,puma通过monit作为非root用户运行。