Block all traffic but one subnet in Multi Router Setup

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
killmequick
DD-WRT Novice


Joined: 13 Nov 2014
Posts: 6

PostPosted: Mon Sep 04, 2017 23:42    Post subject: Block all traffic but one subnet in Multi Router Setup Reply with quote
Hello, I'm having some trouble figuring out the commands but I know what I want to do.

Router A = 10.1.1.1
Router B = 10.1.2.1

Router A is a Modem/Router ISP combo and Router B is running DDWRT. Router B's WAN port is connected to a LAN port on Router A and a single PC running a software based VPN client is connected to Router B as well.

How can I use iptables to reject all outbound traffic toward the ISP except for a single static VPN address or subnet? If my VPN software/server goes down, I want to have the traffic blocked when my local PC ip address changes from the VPN. Is this possible?
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    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