IPVLAN on Docker dont let me access internet via the VPN #1051
Replies: 6 comments
-
You left out a very important bit. How did you create the network Also, please use code formatting as it makes reading larger code examples easier! |
Beta Was this translation helpful? Give feedback.
-
Does anything change if a client is configured to use a public DNS (for example, 1.1.1.1)? |
Beta Was this translation helpful? Give feedback.
-
stays the same, i am so confused. |
Beta Was this translation helpful? Give feedback.
-
Can you access internet from within the WireGuard Easy container? |
Beta Was this translation helpful? Give feedback.
-
yess, thats why i am so confused, the vm that has the wg-easy docker container have access to internet and supposedly the docker-compose.yml and the ipvlan is right configured, so whats the problem? |
Beta Was this translation helpful? Give feedback.
-
When I configure that wg-easy goes through a IPVLAN network i cant access to the internet via vpn but yes to my local network, why is this happening?
DOCKER-COMPOSE.YML
volumes:
etc_wireguard:
services:
wg-easy:
environment:
- LANG=en
- WG_HOST=####################################
- PASSWORD=###########
- PORT=80
- WG_DEFAULT_DNS=112.0.0.3
image: ghcr.io/wg-easy/wg-easy
container_name: wg-easy
volumes:
- /dockervault/wireguard-easy:/etc/wireguard
networks:
ipvlan:
ipv4_address: 112.0.0.4
cap_add:
- NET_ADMIN
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
networks:
ipvlan:
external: true
name: ipvlan
Beta Was this translation helpful? Give feedback.
All reactions