tarassippo
Regular Contributor
Hi All,
Searching the Internet for a solution, I read that in order to access my modem GUI (which is connected to an RT-AC66U_B1 with Merlin v384.12) I should have had simply typed from within a SSH session the following command:
being the IP modem address 192.168.1.1
And it actually works, so happy days...
The article also mentioned a second command, that is
which I didn't type as I have no clue whatsoever what it does and with the first command I am able to access the modedm GUI.
So, can someone please explain to me what that second command does and whether it's necessary (perhaps for security reasons ?) that I should also include/type in that command ?
Tia.
Searching the Internet for a solution, I read that in order to access my modem GUI (which is connected to an RT-AC66U_B1 with Merlin v384.12) I should have had simply typed from within a SSH session the following command:
Code:
ifconfig $(nvram get wan0_ifname):0 192.168.1.2 netmask 255.255.255.0
And it actually works, so happy days...
The article also mentioned a second command, that is
Code:
iptables -t nat -I POSTROUTING -o $(nvram get wan0_ifname) -j MASQUERADE
So, can someone please explain to me what that second command does and whether it's necessary (perhaps for security reasons ?) that I should also include/type in that command ?
Tia.