Skip to content
Snippets Groups Projects
Commit 1d2728f6 authored by void's avatar void
Browse files

keine firewall einstellungen mehr beim start des vpn tunnel setzen

parent f1ad983e
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# the interface name is passed as first argument ($1)
modprobe ip_tables
iptables -t nat -I PREROUTING -p tcp -d 10.0.20.2/32 --dport 389 -j DNAT --to-destination 127.0.0.1:389
iptables -t nat -I PREROUTING -p tcp -d 10.0.20.2/32 --dport 636 -j DNAT --to-destination 127.0.0.1:636
#modprobe ip_tables
#iptables -t nat -I PREROUTING -p tcp -d 10.0.20.2/32 --dport 389 -j DNAT --to-destination 127.0.0.1:389
#iptables -t nat -I PREROUTING -p tcp -d 10.0.20.2/32 --dport 636 -j DNAT --to-destination 127.0.0.1:636
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment