Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/59.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Puma:iptables端口3000有问题_Ruby On Rails_Debian_Iptables_Puma - Fatal编程技术网

Ruby on rails Puma:iptables端口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

我对使用此配置的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             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-anpt
https://gist.github.com/itsmechlark/4ef6aa0eefc8feac83db
iptables保存
https://gist.github.com/itsmechlark/6c81de14fd99fb17d2ea
BTW,puma通过monit作为非root用户运行。