Jump to content
Not connected, Your IP: 18.116.24.148
Sign in to follow this  
VpnTurtle

DD-WRT firewall script problems

Recommended Posts

I've a new router (Linksys WRT1200AC), I've configured it using this guide https://airvpn.org/ddwrt/ and it is working perfectly. 

The only problem is that firewall script doesn't work.

In the past I've used this script on a similar router:

iptables -I FORWARD -i br0 -o tun1 -j ACCEPT
iptables -I FORWARD -i tun1 -o br0 -j ACCEPT
iptables -I FORWARD -i br0 -o vlan2 -j DROP
iptables -I INPUT -i tun1 -j REJECT
iptables -t nat -A POSTROUTING -o tun1 -j MASQUERADE

But with this new router, it doesn't work: I can still access the net while I'm not connected to the VPN...

 

Can someone help me with this please?

Share this post


Link to post

What are your interface names? Run ifconfig and update the interfaces in the script accordingly.

 

Should I run ifconfig on the router itself (using ssh) or from my computer connected to the router?

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...