Page 1 of 1

Editing Firewall and Startup Configuration

Posted: Sun Jul 06, 2014 7:50 am
by noman4ever
Hi,

I want to edit my firewall and startup configuration files so that I can run public ip pool and private ip pool simultaneously on Gargoyle. This is referred to as Multi-NATing.

I was able to do this easily in DD-WRT by entering following commands:

Startup Configuration:
ifconfig br0:1 X.X.X.X netmask 255.255.255.252

Firewall Configurations:
iptables -t nat –F
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE

Please help me where in Gargoyle can I put above commands. I have been able to access router files through WinSCP but I dont know in which file I should put them.

Thanks in advance.