Hej there,
I configure my wireguard according to this tutorial.
I can connect to the wireguard but unfortunately I got no access to the internet via this tunnel.
Can you see my problem?
wg0.conf
[Interface]
Address = 192.168.2.1/24
PrivateKey = ishere
ListenPort = 51820
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROU>
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTR>
[Peer]
PublicKey = isthere
AllowedIPs = 192.168.2.2/32
ip route from container
default via 192.168.178.1 dev eth0 proto dhcp src 192.168.178.73 metric 1024
192.168.2.0/24 dev wg0 proto kernel scope link src 192.168.2.1
192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.178.73
192.168.178.1 dev eth0 proto dhcp scope link src 192.168.178.73 metric 1024
Thank you very much in advance
I configure my wireguard according to this tutorial.
I can connect to the wireguard but unfortunately I got no access to the internet via this tunnel.
Can you see my problem?
wg0.conf
[Interface]
Address = 192.168.2.1/24
PrivateKey = ishere
ListenPort = 51820
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROU>
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTR>
[Peer]
PublicKey = isthere
AllowedIPs = 192.168.2.2/32
ip route from container
default via 192.168.178.1 dev eth0 proto dhcp src 192.168.178.73 metric 1024
192.168.2.0/24 dev wg0 proto kernel scope link src 192.168.2.1
192.168.178.0/24 dev eth0 proto kernel scope link src 192.168.178.73
192.168.178.1 dev eth0 proto dhcp scope link src 192.168.178.73 metric 1024
Thank you very much in advance