Hello everyone
I have installed a vpn server and it works if I try within lan.
After that, the router cannot get online. Can't find what I forgot to configure.
I used template: "Server configuration for an Ethernet bridge VPN"
I have interface openvpn (tun0).
Have looked around the configuration and everything looks fine, but not working. Missed something and can't figure out what!?
config rule
option name 'Allow-OpenVPN'
list proto 'udp'
option src 'wan'
option target 'ACCEPT'
option dest_port '1234'
config zone
option name 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
list device 'tun0'
list network 'Openvpn'
list network 'wan'
list network 'wan6'
list network 'wg0'
Is your router directly connected to the internet?
If so what are the first two octets of the WAN interface e.g. XXX.YYY
This so we can see if you have a publicly available WAN ip address
Furthermore, please connect to your OpenWRT device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact keys, passwords, MAC addresses and any public IP addresses you may have:
ubus call system board
cat /etc/config/network
cat /etc/config/firewall
ip route show
cat /etc/config/openvpn
for ovpn in $(ls /etc/openvpn/*.ovpn);do echo $ovpn; cat $ovpn; echo;done
for vpn in $(ls /tmp/etc/openvpn*.conf);do echo $vpn;cat $vpn;echo;done
logread | grep openvpn
It should be tap0 for bridge mode both here and in the openvpn config.
But for bridge mode what you have to do is join lan with tap0 . Everything above is enough except the firewall port entry
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1.1'
list ports 'tap0'
extra
config interface 'vpntap'
option proto 'none'
option device 'tap0'