Joined: 15 Jul 2019
|Posted: Mon Jul 15, 2019 14:46 Post subject: OpenVPN TAP configration blocks port forwaring from internal
I'm trying to configure an openvpn TAP (bridge) VPN between 2 routers.
TPLink wdr4300 - built 40189
I'm using the following code to connect them:
# Move to writable directory and create scripts
# Config for Static Key Trust
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
" > Mac2Trust.key
# Config - Mac to MacR TAP Server
keepalive 15 60
" > Mac2MacTAP.conf
chmod Mac2MacTAP.conf 600
# Create interfaces
openvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
route add -net 192.168.1.0/24 dev br0
openvpn --config Mac2MacTAP.conf
## TAP Firewall Server ##
iptables -I INPUT -p udp4 --dport 1194 -j ACCEPT
## TAP Firewall Server End ##
Also I have some port forwarding to access a couple of things from WAN, like a RDP connection.
If I call the RDP from internal network with the WAN address I can access perfectly.
My issue is when I apply this OpenVPN configuration. Access from WAN (External) to forwarded ports works fine, but if I try to access them from internal network with WANAddress: port, they not work.
I'm not sure if there is some routing/firewall issue here. Any assistance will be appreciate.
Thanks in advance.