Gouldin
Regular Contributor
Hi all, have recently got an AC88u. Loving being back on Merlin's firmware.
I'm trying to setup 1:1 nat on my router. I know there are JFFS scripts, but even readin the FAQ for it (Which is well documented I must add) I'm at a loss with where to start.
My Current setup is:
BT Open Reach Modem -> RT-AC88U and in DD-WRT, my script goes like so:
So,
I have enabled jffs, telnet. I have Putty. Anyone know how to convert this to work in Asus Merlin?
I'm trying to setup 1:1 nat on my router. I know there are JFFS scripts, but even readin the FAQ for it (Which is well documented I must add) I'm at a loss with where to start.
My Current setup is:
BT Open Reach Modem -> RT-AC88U and in DD-WRT, my script goes like so:
Code:
# Save Startup
WANIF=`get_wanface`
ifconfig $WANIF:1 82.xx.xx.129 netmask 255.255.255.248 broadcast 82.xx.xx.xx
ifconfig $WANIF:2 82.xx.xx.130 netmask 255.255.255.248 broadcast 82.xx.xx.xx
ifconfig $WANIF:3 82.xx.xx.131 netmask 255.255.255.248 broadcast 82.xx.xx.xx
ifconfig $WANIF:4 82.xx.xx.132 netmask 255.255.255.248 broadcast 82.xx.xx.xx
ifconfig $WANIF:5 82.xx.xx.133 netmask 255.255.255.248 broadcast 82.xx.xx.xx
# Save Firewall
# WAN .129 -> LAN .5 (PS4 Pro -)
iptables -t nat -I PREROUTING -d xx.xx.xxx.129 -j DNAT --to 192.168.1.5
iptables -t nat -I POSTROUTING -s 192.168.1.5 -j SNAT --to xx.xx.xxx.129
iptables -I FORWARD -d 192.168.1.5 -j ACCEPT
# WAN .130 -> LAN .6 (WiiU -)
iptables -t nat -I PREROUTING -d xx.xx.xxx.130 -j DNAT --to 192.168.1.6
iptables -t nat -I POSTROUTING -s 192.168.1.6 -j SNAT --to xx.xx.xxx.130
iptables -I FORWARD -d 192.168.1.6 -j ACCEPT
# WAN .131 -> LAN .7 (Switch -)
iptables -t nat -I PREROUTING -d xx.xx.xxx.131 -j DNAT --to 192.168.1.7
iptables -t nat -I POSTROUTING -s 192.168.1.7 -j SNAT --to xx.xx.xxx.131
iptables -I FORWARD -d 192.168.1.7 -j ACCEPT
# WAN .132 -> LAN .8 (PS4 -)
iptables -t nat -I PREROUTING -d xx.xx.xxx.132 -j DNAT --to 192.168.1.8
iptables -t nat -I POSTROUTING -s 192.168.1.8 -j SNAT --to xx.xx.xxx.132
iptables -I FORWARD -d 192.168.1.8 -j ACCEPT
# WAN .133 -> LAN .9 (WiiU -)
iptables -t nat -I PREROUTING -d xx.xx.xxx.133 -j DNAT --to 192.168.1.9
iptables -t nat -I POSTROUTING -s 192.168.1.9 -j SNAT --to xx.xx.xxx.133
iptables -I FORWARD -d 192.168.1.9 -j ACCEPT
So,
I have enabled jffs, telnet. I have Putty. Anyone know how to convert this to work in Asus Merlin?