not saving iptables rules

sbiddo

Neuer User
Mitglied seit
3 Sep 2013
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
hello
something strange is happening
for some reasons i type the following 3 iptables rules

iptables -I PREROUTING -t nat -p udp -s 192.168.178.66 --dport 53 -j DNAT --to-destination 208.122.23.23
iptables -I PREROUTING -t nat -p udp -s 192.168.178.71 --dport 53 -j DNAT --to-destination 208.122.23.22
iptables -I PREROUTING -t nat -p udp -s 192.168.178.72 --dport 53 -j DNAT --to-destination 208.122.23.22
(i do it with ssh)

which work fine

when i reboot the router this rule
iptables -I PREROUTING -t nat -p udp -s 192.168.178.66 --dport 53 -j DNAT --to-destination 208.122.23.22
is lost for some reason...

can anybody help?
thanks
 
What's even more strange is that the other rules are kept across a reboot.
What do you do to save the rules? Which rules are saved?
 
the procedure is the following:
- enter the iptables rule in ssh
- login in the web interface, go to iptables - rules and click on "apply"

this way it will save all the rules even after reboot

cheers
 
So first verify that all rules are actually created.
Then verify that all rules are actually saved.
If they are, execute the rule recreation manually to see what goes wrong.

As far as I know, there are two Web-interfaces for iptables, an I don't use any of those, so I don't know the details of how they work.
 
what i do is that i configure all the rules in SSH, i go to the web interface, verify that the rules are there, click on apply and i am all set
 
Hi,

try to create a script with your rules and save this to your rc.costum.
Cheers,

JD.
 
Kostenlos!

Statistik des Forums

Themen
248,849
Beiträge
2,302,795
Mitglieder
378,498
Neuestes Mitglied
Gerdemha