Talk:Iptables command

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:21, 1 August 2007 (edit)
Urule99 (Talk | contribs)
(Save iptables)
← Previous diff
Revision as of 02:23, 1 August 2007 (edit) (undo)
Urule99 (Talk | contribs)
(Save iptables)
Next diff →
Line 8: Line 8:
I think dd-wrt stores the config using nvram, which doesn't seem to store formats for custom iptables commands. I think dd-wrt stores the config using nvram, which doesn't seem to store formats for custom iptables commands.
# nvram get forward_spec # nvram get forward_spec
-SSH:on:both:22>10.1.99.134:22 HTTP:on:both:8080>10.1.99.134:80 FTP:on:both:21>10.1.99.134:21 VM:on:both:902>10.1.99.134:902+SSH:on:both:22>x.x.x.x:22 HTTP:on:both:8080>x.x.x.x:80 FTP:on:both:21>x.x.x.x:21 VM:on:both:902>x.x.x.x:902
It seems like you should enter custom iptables commands in the http interface by accessing '''Administration''' -> '''Commands''' -> '''Save Firewall''' It seems like you should enter custom iptables commands in the http interface by accessing '''Administration''' -> '''Commands''' -> '''Save Firewall'''

Revision as of 02:23, 1 August 2007

Where do we put IPtable rules should be added?

Save iptables

Can we please get info on how to save iptables so they are restored on reboot? Thanks --Shibz 09:30, 23 Jan 2007 (CET)


I think dd-wrt stores the config using nvram, which doesn't seem to store formats for custom iptables commands.

  1. nvram get forward_spec

SSH:on:both:22>x.x.x.x:22 HTTP:on:both:8080>x.x.x.x:80 FTP:on:both:21>x.x.x.x:21 VM:on:both:902>x.x.x.x:902

It seems like you should enter custom iptables commands in the http interface by accessing Administration -> Commands -> Save Firewall

There is a nice example iptables script for a different purpose here: [1] --Urule99 04:17, 1 August 2007 (CEST)