2013年1月31日 星期四

IPCOP 2 SNAT manual config

Add
/sbin/iptables -t nat -A CUSTOMPOSTROUTING -s 10.x.y.z -j SNAT --to-source 67.x.y.z
in /etc/rc.d/rc.firewall.local 

under : 

start)
    ## add your 'start' rules here
    ## SNAT for custom config
 /sbin/iptables -t nat -A CUSTOMPOSTROUTING -s 192.168.x.y -j SNAT --to-source 123.234.x.y


then run 
/etc/rc.d/rc.firewall.local

Next time you reboot IPCOP, this rc.firewall.local will also applied automatically.

沒有留言: