let docker bridge connect vlan interface -
pre-requisites:
sudo ip link add link eth0 name eth0.100 type vlan id 101
problem:
i want start openvpn docker in container, step easy: sudo docker run -v $ovpn_data:/etc/openvpn -p 1194:1194/udp --privileged -e debug=1 kylemanna/openvpn need let container can continue route package eth0.100, after openvpn recieved remote client data. there idea it, not working all.
1: first create bridge:
docker network create bridge vpn_bridge start container vpn_bridge sudo docker run --net=vpn_bridge -v $ovpn_data:/etc/openvpn -p 1194:1194/udp --privileged -e debug=1 kylemanna/openvpn finally, find can't join vlan interface vpn_bridge
2:
use macvlan: sudo docker network create -d macvlan \ --subnet=192.168.100.0/24 \ --gateway=192.168.100.1 \ -o parent=eth0.1000 pub_net start container pub_net: sudo docker run --net=vpn_bridge -v $ovpn_data:/etc/openvpn -p 1194:1194/udp --privileged -e debug=1 kylemanna/openvpn although container join vlan, found can't connect container's openvpn server in local host.
is there can give me more way (ps: use traditional way solve use linux's default bridge)
Comments
Post a Comment