Jump to content
TorGuard
Sign in to follow this  
omar

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

Rate this topic

Recommended Posts

omar

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

 

 

in firewall, in ddwrt, put this line

 

 

 

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

 
this will include from 192.168.0.0 to 192.168.255.255
 
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
Annonymous

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.

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...
Sign in to follow this  

×
×
  • Create New...