Sidebar

Fernando Softov | IPFW – Simple NAT
4662
post-template-default,single,single-post,postid-4662,single-format-standard,ajax_fade,page_not_loaded,smooth_scroll,boxed,wpb-js-composer js-comp-ver-3.6.12,vc_responsive

IPFW – Simple NAT

 

ipfw nat 1 config if em0

ipfw add 2001 nat 1 ip from any to any in via em0
ipfw add 4001 nat 1 ip from any to any out via em0
ipfw add 65535 allow ip from any to any

# vi /etc/sysctl.conf

net.inet.ip.forwarding=1
net.inet6.ip6.forwarding=1

 

sysctl net.inet.ip.forwarding=1
sysctl net.inet6.ip6.forwarding=1

AUTHOR - admin

No Comment

0

Post A Comment