At an office, a FreeBSD router is set up using ipfw and nat. This part works great and has for years.
We added an ipsec tunnel for a remote network. I have the tunnel up, and can ping from the internal interface (em1 172.31.0.200) to the remote IP 10.4.4.4, no problem.
For the nat, I set up...
Hi,
I used ipfw before
My ipfw rule was like this :
ipfw -q add 11 divert 4444 udp from any to any dst-port 53 in via igb1
I move on pf now
My pf rule was like this :
pass in quick on igb1 proto udp from any to port { 53 } divert-to 127.0.0.1 port 4444
My Code :
#include <stdio.h>
#include...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.