Attempting to make IPtables changes sticky

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
mikec2188
DD-WRT Novice


Joined: 17 May 2016
Posts: 4

PostPosted: Tue May 17, 2016 7:28    Post subject: Attempting to make IPtables changes sticky Reply with quote
Hi All,

I am using Firmware: DD-WRT v24-sp2 (04/22/14) std, Build 23940 on my Asus RT-AT68U.

I am trying to have the following command persist:

iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to-destination 23.21.43.50:53
iptables -t nat -A PREROUTING -p tcp --dport 53 -j DNAT --to-destination 23.21.43.50:53

I have them saved as startup commands and they will work when I manually re-paste the commands into the command box and run them...but they eventually drop off without a router reboot and I find myself having to manually run the commands again.

Is there any way to have these port commands persist 24/7 while the router is up? Why would they work fine and then vanish even though I have not restarted or rebooted the router?

Thanks so much.
Sponsor
pt2501
DD-WRT Novice


Joined: 15 May 2016
Posts: 3

PostPosted: Wed May 18, 2016 4:22    Post subject: Re: Attempting to make IPtables changes sticky Reply with quote
mikec2188 wrote:
Hi All,

I am using Firmware: DD-WRT v24-sp2 (04/22/14) std, Build 23940 on my Asus RT-AT68U.

I am trying to have the following command persist:

iptables -t nat -A PREROUTING -p udp --dport 53 -j DNAT --to-destination 23.21.43.50:53
iptables -t nat -A PREROUTING -p tcp --dport 53 -j DNAT --to-destination 23.21.43.50:53

I have them saved as startup commands and they will work when I manually re-paste the commands into the command box and run them...but they eventually drop off without a router reboot and I find myself having to manually run the commands again.

Is there any way to have these port commands persist 24/7 while the router is up? Why would they work fine and then vanish even though I have not restarted or rebooted the router?

Thanks so much.


Are you saving them in the startup or firewall?

-pt
mikec2188
DD-WRT Novice


Joined: 17 May 2016
Posts: 4

PostPosted: Wed May 18, 2016 5:22    Post subject: Reply with quote
I am putting the commands in startup.

I'm guessing I should be putting them in firewall?
pt2501
DD-WRT Novice


Joined: 15 May 2016
Posts: 3

PostPosted: Wed May 18, 2016 5:29    Post subject: Reply with quote
mikec2188 wrote:
I am putting the commands in startup.

I'm guessing I should be putting them in firewall?


Yup. Seems like the logical place given the options :)

-pt
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum