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

IPtables how to add exception?

Recommended Posts

Hi @ all!


Just need a little help, I'm not that knowledgeable in iptables etc.

But I got a firewall rule for my DD-WRT, that drops traffic as soon the vpn connection is down


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



Now I need an exception for my modem ip

sometimes I need access so I can check if a tunnel goes down on my isp (I've two)


Is it possible to add an exception to my modem ip


Thanks and take care

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.

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.

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

  • Create New...