debugging ipnat

Michael P. Soulier msoulier at digitaltorque.ca
Mon Jan 8 18:41:47 UTC 2007


On 1/6/07, Michael P. Soulier <msoulier at digitaltorque.ca> wrote:
> I have a simple port-forwarding rule that I want to work from my
> gateway to a box on my LAN, but it doesn't seem to be working.
>
> [msoulier at kanga ~]$ sudo ipnat -l
> Password:
> List of active MAP/Redirect filters:
> rdr tun0 0.0.0.0/32 port 6882 -> 192.168.1.3 port 6882 tcp

What I was doing wrong is that the rule should have been this.

rdr tun0 0.0.0.0/0 port 6882 -> 192.168.1.3 port 6882 tcp

Mike
-- 
Michael P. Soulier <msoulier at digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction."
--Albert Einstein


More information about the freebsd-questions mailing list