Skip to contentSkip to conversation

what's the problem of DNAT,It seems there is a HIDE firewall

DISCUSSION Buddy wu 1 participant 2 messages Nov 1, 2005

lore
Share & tools
lore

Buddy wu

author
#0 lore raw

Thank you, but I don't think so

Now I found that It seems have a HIDE firewall, the firewall just only allow the access from internet at port 80, and will deny access at all the other ports.
And I can access to the internet address( the firewall's machine like 211.211.112.11) at any port that the firewall have a DNAT RULE, but i can't access it except port 80 from internet.
It just like the firewall just allow the access at 80 from internet, but I don't set the firewall, It like it's burn with the machine. I promise I didn't set that firewall, and I have checked my rule that It doesn't drop other ports access

2005/10/31, Henrik Nordstrom <[email protected]>:

Quoted 19 lines · Buddy wu
Quoted 6 lines

And there is another Interest thing (I'm pained with the "interesting thing") where I use 'sbin/iptables -t nat -A PREROUTING -d Inet2 -p tcp --dport 8087 -j DNAT --to 192.168.16.100:8087' rule, I can access
http://Inet2:8087 in the LAN, but I can't access http://Inet2:8087
through Internet(I have a machine direct access to internet)

Please verify the routing on 192.168.16.100. To me the data you have indicates 192.168.16.100 does not have correct routing for the Internet. From what I have seen the iptables rules is correct, but all your rules with NAT to 192.168.16.100 is failing.

Quite likely the NAT and firewall rules as such is working just fine, but 192.168.16.100 does not know what to do with the return traffic.

Regards
Henrik

author
#1 lore raw

Thank you for everyone, I've found the problem. The internet machine that I used has his own firewall, It just allow 80 ports traffic.

2005/11/1, Buddy wu <[email protected]>:

Quoted 34 lines

Thank you, but I don't think so

Now I found that It seems have a HIDE firewall, the firewall just only allow the access from internet at port 80, and will deny access at all the other ports.
And I can access to the internet address( the firewall's machine like 211.211.112.11) at any port that the firewall have a DNAT RULE, but i can't access it except port 80 from internet.
It just like the firewall just allow the access at 80 from internet, but I don't set the firewall, It like it's burn with the machine. I promise I didn't set that firewall, and I have checked my rule that It doesn't drop other ports access

2005/10/31, Henrik Nordstrom <[email protected]>:

Quoted 19 lines · Buddy wu
Quoted 6 lines

And there is another Interest thing (I'm pained with the "interesting thing") where I use 'sbin/iptables -t nat -A PREROUTING -d Inet2 -p tcp --dport 8087 -j DNAT --to 192.168.16.100:8087' rule, I can access
http://Inet2:8087 in the LAN, but I can't access http://Inet2:8087
through Internet(I have a machine direct access to internet)

Please verify the routing on 192.168.16.100. To me the data you have indicates 192.168.16.100 does not have correct routing for the Internet. From what I have seen the iptables rules is correct, but all your rules with NAT to 192.168.16.100 is failing.

Quite likely the NAT and firewall rules as such is working just fine, but 192.168.16.100 does not know what to do with the return traffic.

Regards
Henrik