From 41d7659dbbe084e17739a2387e2cdf1f96b70d15 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Fri, 17 Feb 2017 19:10:38 +0100 Subject: [PATCH] howto access our modem --- doc/modemaccess.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/modemaccess.txt diff --git a/doc/modemaccess.txt b/doc/modemaccess.txt new file mode 100644 index 000000000..ff6a25f --- /dev/null +++ b/doc/modemaccess.txt @@ -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