Where to add iptables rules...?

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
khisanth
Posts: 3
Joined: Thu Apr 03, 2014 11:15 pm

Where to add iptables rules...?

Post by khisanth »

Greetings,

I wish to add the following iptables entries:

Code: Select all

iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination 107.20.195.51
iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 107.20.190.171
Where should i add them to make them persistent?

P.s: i tried etc/rc.local but it gets flushed after some time.

Post Reply