Openvpn und iptables
Zur Navigation springen
Zur Suche springen
Variablen
- WANDEV=eth0
- LANDEV=ens19
- VPNDEV=tun0
- OVPNPORT=5000
- LAN=10.82.228.0/24
- VPN=172.31.2.0/24
Vorausgesetztes Connection Tracking
- Verschlüsselter Verkehr
- iptables -A INPUT -p udp --dport $OVPNPORT -m state --state NEW -j ACCEPT
- VPN Pakete ins LAN
- iptables -A FORWARD -i $VPNDEV -o $LANDEV -s $VPN -d $LAN -m state --state NEW -j ACCEPT