Open VPN Client and Firewall help

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Advanced Networking
Author Message
stangdriverdoug
DD-WRT Novice


Joined: 28 Mar 2013
Posts: 39

PostPosted: Thu May 04, 2017 14:30    Post subject: Open VPN Client and Firewall help Reply with quote
Hello All,
I have tried searching on google can't get a straight answer. I am very new at this stuff. I currently use IPVanish for my VPN.I set it up using the open VPN setting on Brainslayer's latest build on a WRT1900AC V1 router. Everything is running well. Question is with the setup it tells me to disable the SPI Firewall setting, and enable it under the OpenVPN setting.All good there.

Question is with it set up like this are the devices not going through the VPN protected by a firewall still? And if not how do I do it? I have a couple media streamers that need to use my normal IP.

Thank You
Sponsor
hubermania
DD-WRT User


Joined: 24 Aug 2012
Posts: 223

PostPosted: Thu May 04, 2017 18:00    Post subject: Reply with quote
Ye gods, No! I've never heard of disabling the SPI firewall for VPN. The only thing "protecting" you is the VPN provider's firewall on the other end of the tunnel!

Let OpenVPN configure the SPI firewall for itself. My Mullvad VPN works fine with SPI enabled on the Security tab and Firewall Protection enabled on the VPN tab. Everything goes through the tunnel, and I added a firewall to block br0->WAN traffic just in case the VPN tunnel goes down.

Thus I found it reassuringly necessary to bypass the VPN for VoIP traffic and my cable modem UI.
Code:
OpenVPN Additional Config:
route 192.168.100.1 255.255.255.255 net_gateway
route <voip server farm> 255.255.255.0 net_gateway

Firewall Rules:
iptables -I FORWARD -i br0 -o $(nvram get wan_iface) -j REJECT
iptables -I FORWARD -i br0 -d 192.168.100.1 -j ACCEPT
iptables -I FORWARD -i br0 -d <voip server farm>/24 -j ACCEPT

_________________
[Broadcom] Asus rt-ac66u r35531 ('66 should only be factory reset through the DD UI)
Fix RT-AC66U "wl1 [2.4 GHz TurboQAM]". DD-WRT failsafe UI @ http|https://169.254.255.1/
stangdriverdoug
DD-WRT Novice


Joined: 28 Mar 2013
Posts: 39

PostPosted: Thu May 04, 2017 21:35    Post subject: Reply with quote
Thank you for the reply. Just to clarify: I have firewall enabled under the open VPN setting / tab. Under the security tab, firewall tab, the online tutorials I found say to disable "SPI Firewall" and enable under it under the Open VPN setup tab. This makes me think that if I have any devices outside of the VPN that it may not be protected by the firewall. Do you follow what I am trying to say?

Thanks!
hubermania
DD-WRT User


Joined: 24 Aug 2012
Posts: 223

PostPosted: Thu May 04, 2017 22:19    Post subject: Reply with quote
Yup, I follow you. I see the SPI firewall thing now in some of the VPN providers' tutorials. I am stubbornly skeptical. IMHO disabling the SPI firewall is a tech support cure-all for improperly configured firewalls. I've got Mullvad VPN, and nowhere in their DD-WRT client configuration guide did they have me disable the SPI firewall. I cringe just thinking about it.

Edit: to be clear, no I do not believe your VPN-bypassed devices have firewall protection with the SPI firewall disabled. I hope someone will correct me if I'm misinformed.

_________________
[Broadcom] Asus rt-ac66u r35531 ('66 should only be factory reset through the DD UI)
Fix RT-AC66U "wl1 [2.4 GHz TurboQAM]". DD-WRT failsafe UI @ http|https://169.254.255.1/
Display posts from previous:    Page 1 of 1
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Advanced Networking 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