This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't get Nat Working for webserver

Hi All,
I just did a fresh install of ASG 7.504 and I can't get nat to work for my web server.  I read as manny of the other posts that I can find and none of them have given me the answer.  Here is the setup

I auto setup my web server in the DNS database, to build the definition.

dnat looks like 

Trafic Source > Internet
Trafic service > HTTP (ie. port 80)
Trafic Dest    > WAN address (my public ip)

NAT mode > DNAT

Destination > Webserver ( the ip of my internal web server)
Destination service > left blank

Log initial packet > checked
Automatic filter > checked 

Here is the live log:

18:19:57 Connection using NAT TCP 68.XX.XX.XX:51844→76.122.XX.XX:80 [SYN] len=60 ttl=51 tos=0x00 srcmac=00:01:5c:24:62:c2 dstmac=00:0a:5e:05:68:ca
18:19:58 Connection using NAT TCP 68.XX.XX.XX:59229→76.122.XX.XX:80 [SYN] len=60 ttl=51 tos=0x00 srcmac=00:01:5c:24:62:c2 dstmac=00:0a:5e:05:68:ca
18:19:58 Connection using NAT TCP 68.XX.XX.XX:55583→76.122.XX.XX:80 [SYN] len=60 ttl=51 tos=0x00 srcmac=00:01:5c:24:62:c2 dstmac=00:0a:5e:05:68:ca
18:19:58 Connection using NAT TCP 68.XX.XX.XX:56267→76.122.XX.XX:80 [SYN] len=60 ttl=51 tos=0x00 srcmac=00:01:5c:24:62:c2 dstmac=00:0a:5e:05:68:ca

I aslo get HTTP error 504: Gateway Timeout


This thread was automatically locked due to age.
Parents
  • Hello,

    is the Webserver able to reach the Internet? Your DNAT rule looks (almost) correct, packets should arrive at the Webserver. Perhaps the problem is that it is unable to answer to the requests? Also I wrote 'almost', because you told us your SRC is 'Internet'. Did you use the 'Internet'-Network-Definition for this? If that' s the case then this may wrong - please use 'Any' instead. Otherwise you may not be able to connect from inside.
Reply
  • Hello,

    is the Webserver able to reach the Internet? Your DNAT rule looks (almost) correct, packets should arrive at the Webserver. Perhaps the problem is that it is unable to answer to the requests? Also I wrote 'almost', because you told us your SRC is 'Internet'. Did you use the 'Internet'-Network-Definition for this? If that' s the case then this may wrong - please use 'Any' instead. Otherwise you may not be able to connect from inside.
Children
  • Well I did use the Internet Definition that is auto created when 7.504 installed.

    I thought that i read that you should not use the any in the newer version as it works differently than in past os's.  Any way i could not get it to work with the any def and that is why I used the Internet def.

    I can get out from the web server if i use a web browser like elinks.