[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another NAT config issue



Yep, you read it right, this is another NAT issue. Maybe I just couldn't find 
it but I did RTFA. 
I have your typical home broadband network setup. OpenBSD 3.2 gateway/NAT. I 
have another OpenBSD box as a webserver behind the NAT plus several clients. 
My situation is I can connect to the webserver using local IP from a local 
client. I can connect to the webserver remotely using my external IP address. 
I can not connect to my webserver from a local client using the remote 
address. I believe it is just a pf syntax goof but I can't figure it out. 

nat on $ExtIf from 125.125.125.0/24 to any -> $ExtIf                          

rdr on $IntIf proto tcp from any to $ExtIf port 80 -> 125.125.125.50 port 80
rdr on $ExtIf proto tcp from any to any port 80 -> 125.125.125.50 port 80

125.125.125.50 is the local address of the webserver.
The first rdr rule is the one I believe to be in error.

Any ideas or other required info?



Visit your host, monkey.org