I have a dell r720 server which have 4 ethernet cards. I used two of them as docker macvlan and installed openwrt in docker.
Also I have installed xl2tpd. In openwrt server, it works all fine, I could successfully download all kinds of data. But it seems the default gateway not work for LAN clients, in LAN clients I could ping other websites successfully but couldn't download any data.
The default gateway is like this:
root@OpenWrt:/etc/config# ip route show
default via 10.0.2.3 dev l2tp-vpn
10.0.2.3 via 10.214.200.1 dev eth1
10.0.2.3 dev l2tp-vpn scope link src 222.205.7.129
10.214.200.0/24 dev eth1 scope link src 10.214.200.104
192.168.2.0/24 dev br-lan scope link src 192.168.2.1
If I add default WAN gateway , the LAN clients could get data but not through the l2tp service.
The /etc/config/network is
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option type 'bridge'
option ifname 'eth0'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.2.1'
config interface 'wan'
option ifname 'eth1'
option ip6assign '60'
option proto 'static'
option ipaddr '10.214.200.104'
option netmask '255.255.255.0'
option gateway '10.214.200.1'
option broadcast '10.214.200.255'
list dns '10.10.0.21'
config interface 'vpn'
option ifname 'vpn1'
option proto 'l2tp'
option username '-----'
option password '-----'
option server '10.0.2.3'
option ipv6 'auto'
option mtu '1428'
Can anyone help me about this problem? Thanks!