What is a "firewall script"?

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
yonkiman
DD-WRT Novice


Joined: 22 Dec 2012
Posts: 8

PostPosted: Wed Mar 24, 2021 0:07    Post subject: What is a "firewall script"? Reply with quote
Prob a stupid question but I could find a definition. Ran across it in this post: https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=719827

slobodan wrote:

Fourth: this helps also (save it as firewall script):
Code:
iptables -t nat -A PREROUTING -i br0 -p udp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 53 -j DNAT --to $(nvram get lan_ipaddr)


Sounds like a good idea but I couldn't find a place for a "firewall script" anywhere in the DD-WRT interface, so I know I'm missing something...
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Wed Mar 24, 2021 0:09    Post subject: Reply with quote
Administration -> Commands -> Save Firewall
yonkiman
DD-WRT Novice


Joined: 22 Dec 2012
Posts: 8

PostPosted: Wed Mar 24, 2021 0:23    Post subject: Reply with quote
Thanks for the crazy-fast response!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum