tarassippo
Regular Contributor
By reading a few forums I was able to find a solution on how to access the web GUI of my modem (IP address is 192.168.2.1) which is connected to the WAN port of my R7800:
At least I know that 'iptables' mean a change in the firewall, so could someone confirm there is no security breach/risk by adding that rule?
Now, the issue I have is that after a while I can't access the GUI anymore, why ?
Could someone shed some light on what I'm doing wrong?
Also, would someone please explain to me what to do in order to automatically load those lines each time the router reboot ?
Tia.
Code:
ifconfig $(nvram get wan_ifname):1 192.168.2.2 netmask 255.255.255.0
iptables -t nat -I POSTROUTING -s ! $(nvram get lan_ipaddr) -d 192.168.2.1 -j SNAT --to 192.168.2.2
Now, the issue I have is that after a while I can't access the GUI anymore, why ?
Could someone shed some light on what I'm doing wrong?
Also, would someone please explain to me what to do in order to automatically load those lines each time the router reboot ?
Tia.
Last edited: