OpenVPN TAP configration blocks port forwaring from internal

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
mac2024
DD-WRT Novice


Joined: 15 Jul 2019
Posts: 1

PostPosted: Mon Jul 15, 2019 14:46    Post subject: OpenVPN TAP configration blocks port forwaring from internal Reply with quote
Hello everyone,
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
cd /tmp

# Config for Static Key Trust
echo "
-----BEGIN OpenVPN Static key V1-----
xxxx
-----END OpenVPN Static key V1-----
" > Mac2Trust.key

# Config - Mac to MacR TAP Server
echo "
proto udp4
port 1194
dev tap0
secret /tmp/Mac2Trust.key
cipher AES-256-CBC
verb 3
comp-lzo
keepalive 15 60
daemon

" > 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.
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum