1
German - Deutsch / Re: OpenVPN mit 2 IPs
« on: September 28, 2023, 09:06:06 pm »
Es sollte natürlich das richtige Gateway eingetragen werden
Somit ist das Problem gelöst =)
Somit ist das Problem gelöst =)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
/etc/network/interfaces
auto vmbr0
iface vmbr0 inet static
address xx.xx.xx.xx/xx
bridge-ports none
bridge-stp off
bridge-fd 0
post-up sysctl -w net.ipv4.forward=1
post-up iptables -A PREROUTING -t nat -i vmbr0 -p tcp --dport 443 -j DNAT --to-destination 10.10.1.1:1194
post-down iptables -D PREROUTING -t nat -i vmbr0 -p tcp --dport 443 -j DNAT --to-destination 10.10.1.1:1194
iface vmbr0 inet6 static
address xx:xx:xx:xx::x
gateway xxxx::x
broadcast xx.xx.xx.xx
pointopoint xx.xx.xx.xx
gateway xx.xx.xx.xx
bridge-ports enp0s31f6
bridge-stp off
bridge-fd 0
up route add -net xx.xx.xx.xx netmask xx.xx.xx.xx gw xx.xx.xx.xx dev enp0s31f6
auto vmbr1
iface vmbr1 inet static
address 10.10.1.0/31
bridge-ports none
bridge-stp off
bridge-fd 0
post-up iptables -t nat -A POSTROUTING -s '10.10.1.1/31' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.10.1.1/31' -o vmbr0 -j MASQUERADE