IPFW and NAT
Hi!
I'm in need of little help with my firewall on my FreeBSD 7.0 server. I have OpenVPN installed and have it configured with routed vpn. Now I want to NAT all the traffic that comes from tun0 so it can reach the internet on vr0, but I'm not exactly sure how to do that.. My firewall looks like this atm: (/usr/local/etc/ipfw.rules) Code:
IPF="ipfw -q add" |
I think I've found how to nat it now
Code:
IPF="ipfw -q add" Is there something else I have to do to get NAT to work? Start something or change something with sysctl? |
Do you have natd running, you have DIVERT compiled in kernel?.
Also i remember having DIVERT rule the first thing or right after LOOP BACK rules. Code:
options IPFIREWALL This might be useful i dunno. I prefer to use PF firewall and there has been a long time since i've used IPFW. http://www.freebsddiary.org/ipfw.php Code:
$IPF 60 allow tcp from any to any established |
All times are GMT -5. The time now is 11:07 PM. |