Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    [solved] IPSec mobile clients/roadwarrior: Tunnel web traffic only

    Scheduled Pinned Locked Moved IPsec
    4 Posts 2 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      yay
      last edited by

      Hi all,

      I configured IPSec as described in the infamous article - IPsec Road Warrior/Mobile Client How-To - which works quite nice.

      Is it possible to allow a roadwarrior to redirect his web traffic over the tunnel but deny access to any local subnets?

      Cheers

      1 Reply Last reply
      Reply Quote 0
      • J
        jgraham5481
        last edited by

        On the ipsec interface rules, block access to 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8. Just be sure and assign a public DNS, so it doesn't have to traverse a subnet it now no longer has access to.

        1 Reply Last reply
        Reply Quote 0
        • Y
          yay
          last edited by

          Thanks for your hint, that's what I assumed. I was just too picky trying to find any switches inside the IPSec configuration. That's what I use now - does it like fine?

          
                  Protocol Source 	Port 	Destination 	Port 	Gateway 	Queue 	Description
          (-)	IPv4 * 	 * 	        * 	10.0.0.0/8 	* 	* 	        none 	@Block any traffic to Class A subnets 	
          (-)	IPv4 * 	 * 	        * 	172.16.0.0/12 	* 	* 	        none 	@Block any traffic to Class B subnets 	
          (-)	IPv4 * 	 * 	        * 	192.168.0.0/16 	* 	* 	        none 	@Block any traffic to Class C subnets 	
          (+)	IPv4 * 	 IPRANGE ipsec 	* 	* 	        * 	* 	        none 	@Allow any traffic to any destination 
          
          

          Alternatively - invert match with a single rule:

          
                  Protocol Source 	Port 	Destination 	        Port 	Gateway Queue 	Description
          (+)	IPv4 * 	 IPRANGE ipsec 	* 	! IPRANGE RFC1918 	* 	* 	none 	@Block traffic to any private subnet
          
          
          1 Reply Last reply
          Reply Quote 0
          • Y
            yay
            last edited by

            I marked the topic as solved. If anyone wants to comment on my rules you are welcome. :)

            1 Reply Last reply
            Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
            Privacy Policy · Cookie Policy