I hope this isn't above the scope of ServerFault. If the question doesn't work here, some direction would be helpful.
We've got an Ubuntu development server with 2 nics. One has a public IP and one is internal. Everything works fine internally, whether we set our host files to use the internal or public IP. The DNS settings seem to be accurate at GoDaddy but we cannot access our website from outside our network. We've tried several things with iptables to no avail. Nothing shows up in /var/log/nginx/error.log. Right now, we're using iptables-persistant and if we run iptables -L -n -v
, we get the following:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
6300 5345K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
446 19640 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
8 480 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
4 220 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
23 1264 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
8 416 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:6081
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8080
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8000
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:225
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:1581
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2123
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:2124
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:32869
435K 43M REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT 7064 packets, 2805K bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- * * 0.0.0.0/0 64.224.199.0/27 tcp dpt:1500
0 0 ACCEPT tcp -- * * 0.0.0.0/0 69.0.166.0/27 tcp dpt:1500
0 0 ACCEPT tcp -- * * 0.0.0.0/0 66.40.60.0/27 tcp dpt:1500
0 0 ACCEPT tcp -- * * 0.0.0.0/0 83.222.224.32/28 tcp dpt:1500
0 0 ACCEPT tcp -- * * 0.0.0.0/0 209.15.255.224/27 tcp dpt:1500