Jump to content
Sign in to follow this  

how to create real IP kill switch with IPTABLES on the DDWRT router

Rate this topic

Recommended Posts


forget about software kill switches, as you can't trust them



in firewall, in ddwrt, put this line




iptables -I FORWARD -s -o $(nvram get wan_iface) -j DROP

this will include from to
no single machine with those internal IPs will be access the net, if VPN is not  up.
this is the real deal, tried and tested, works like a charm
i - insert
FORWARD - for packets being forwarded through the router 
s - source
o - defining interface physical name
$(nvram get wan_iface) - gets the wan interface name
j - jumps to
drop - packets are dropped

Share this post

Link to post
Share on other sites

what firewall ?

on pc or router ?


Edit : Nvm nvram is command for cisco routers.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Sign in to follow this  

  • Create New...