PDA

Bekijk de volledige versie : How to save iptables?



Blackbirdrozd
22-03-2011, 21:57
Hi.

I've got newest firmware from http://code.google.com/p/wl500g installed correctly by wengi's tutorial.

How can I save my iptables?

Bcs. anytime I reboot, iptables go into default state (default rules).

Thanks.

wpte
22-03-2011, 22:49
Hi.

I've got newest firmware from http://code.google.com/p/wl500g installed correctly by wengi's tutorial.

How can I save my iptables?

Bcs. anytime I reboot, iptables go into default state (default rules).

Thanks.

Well there is a file called "/usr/local/sbin/post-firewall"
You can enter your ip-tables here

then save the file and save the flashfs with these commands:

flashfs save && flashfs commit && flashfs enable
Sounds familiar?:)

Blackbirdrozd
24-03-2011, 13:50
Yeah,
that was first thing I've done.

But it's not working.

Thanks.

Tamadite
24-03-2011, 19:24
Yeah,
that was first thing I've done.

But it's not working.

Thanks.

you did not forget "#!/bin/sh" right?

Blackbirdrozd
25-03-2011, 14:20
you did not forget "#!/bin/sh" right?

Ok. Right now, I feel like an idiot. :D

Solved.

Thanks.