You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
378 B
Plaintext
12 lines
378 B
Plaintext
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
|