howto access our modem

This commit is contained in:
webzwo0i 2017-02-17 19:10:38 +01:00
parent d94b3e9101
commit 41d7659dbb
1 changed files with 11 additions and 0 deletions

11
doc/modemaccess.txt Normal file
View File

@ -0,0 +1,11 @@
auf upstream1:
ip a a 192.168.100.2/24 dev up1
iptables -t nat -A PREROUTING -p tcp --dport 12345 -j DNAT --to-destination 192.168.100.1:80
lokal:
ssh -L:12345:172.20.72.63:12345 $USER@172.20.72.1
im browser: http://localhost:12345
danach aufräumen:
ip a d 192.168.100.2/24 dev up1
iptables -t nat -D PREROUTING -p tcp --dport 12345 -j DNAT --to-destination 192.168.100.1:80