Hi all,
I just recently got an ASUS RT-AC86U router and put Merlin's firmware on it right away. I got pretty much everything set up the way I need it except I would like to be able to add a few iptables rules. I was trying to read through the Wiki a bit and in other places on how to do this. It's my understanding that I need to enable JIFFS partition as well as SSH so I can telnet, correct?
I'm a little lost on what to do after doing that because I'm not super familiar with Linux and am still learning. What are the steps/commands I need to follow once I telnet into the router? I know the iptables commands I need to use because I had them on my previous router. I will be using the commands:
iptables -t nat -l PREROUTING -p udp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p udp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.4.4
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.4.4
iptables -t nat -l PREROUTING -p udp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p udp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.4.4
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.4.4
I'm using these commands because I want to set a certain DNS server for a few specific devices I own.
I had dd-wrt on my previous router and I could add these through the GUI. I like the interface of ASUSWRT so I would like to stick with it if I can get everything figured out with these commands.
Thanks!
I just recently got an ASUS RT-AC86U router and put Merlin's firmware on it right away. I got pretty much everything set up the way I need it except I would like to be able to add a few iptables rules. I was trying to read through the Wiki a bit and in other places on how to do this. It's my understanding that I need to enable JIFFS partition as well as SSH so I can telnet, correct?
I'm a little lost on what to do after doing that because I'm not super familiar with Linux and am still learning. What are the steps/commands I need to follow once I telnet into the router? I know the iptables commands I need to use because I had them on my previous router. I will be using the commands:
iptables -t nat -l PREROUTING -p udp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p udp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.4.4
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.11/32 --dport 53 - j DNAT --to 8.8.4.4
iptables -t nat -l PREROUTING -p udp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.8.8
iptables -t nat -l PREROUTING -p udp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.4.4
iptables -t nat -l PREROUTING -p tcp -s 192.168.1.12/32 --dport 53 - j DNAT --to 8.8.4.4
I'm using these commands because I want to set a certain DNS server for a few specific devices I own.
I had dd-wrt on my previous router and I could add these through the GUI. I like the interface of ASUSWRT so I would like to stick with it if I can get everything figured out with these commands.
Thanks!