LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-29-2015, 07:59 AM   #1
pandersson61
Member
 
Registered: Jan 2004
Distribution: Ubuntu 9.10, 10.04
Posts: 40

Rep: Reputation: 15
Shorewall Route ip range to another firewall (for vpn connections)


Is it possible to route specific ip adresses to a different router on the network?

This is our setup:

10.10.10.1 - A hardware router with configured vpn tunnels (slow)
10.10.10.20 - Linux server running shorewall (fast)

I'd like to run all network traffic through the Linux server. But I'd like to use the hardware router for the vpn tunnels. (Open VPN doesn't support the encryption used on the tunnels, so I can't run the tunnels on the Linux server.)

Example:
The hardware firewall has a configured tunnel to the network 192.168.1.0
So the connection to a tunneled network would be routed like this:

10.10.10.30(Client computer) -> 10.10.10.20 (Linux firewall) -> 10.10.10.1 (Hardware firewall) -> Tunneled to 192.168.1.1

And all other connections would be:
10.10.10.30(Client computer) -> 10.10.10.20 (Linux firewall) -> google.com (or something)

I hope you understand what I'm looking for.
Any help would be very appreciated as the hardware firewall only allows connection speeds < 200mbit.

/Peter
 
Old 10-01-2015, 02:17 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,855

Rep: Reputation: 161Reputation: 161
Where is VPN terminator, at Linux or hardware firewall?
 
Old 10-05-2015, 06:36 AM   #3
pandersson61
Member
 
Registered: Jan 2004
Distribution: Ubuntu 9.10, 10.04
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks for the reply!
The idea is that the hardware firewall will handle all vpn connections while the linux firewall handles all other network traffic.
So the terminator would be on the hardware firewall.
 
Old 10-05-2015, 02:33 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,855

Rep: Reputation: 161Reputation: 161
You can use iptable to pass through all ESP packet to hardware firewall. Then Linux firewall will handle other traffic, plain packet.
 
Old 10-06-2015, 03:40 AM   #5
pandersson61
Member
 
Registered: Jan 2004
Distribution: Ubuntu 9.10, 10.04
Posts: 40

Original Poster
Rep: Reputation: 15
The hardware firewall handles all the vpn connections and the tunnels are always open.
So all the client has to do to connect to the servers via vpn is to connect to:

smb://[ip of the vpn tunnel]

So simple packet filtering will not work.
The end user does not know if they connect to a computer on our local network or a computer connected via vpn.
I will need to route specific ip adresses/ranges to the hardware firewall. While all other traffic goes via the linux server.

Say we have two servers that are connected via vpn.
Those have ip adresses 192.168.1.1 and the other 20.20.20.240.
This is what I want to do:
Code:
----------------------
|                    |
| Clients connnect   |
| via ip or hostname |
----------------------
          |
          |
-------------------------                ---------------------            -------------
| Linux router/firewall |                |                   |            |           |
|                       |                |                   |            |           |
| 192.168.1.1 -------------------------->| Hardware Firewall | ---------> | VPN Hosts |
| 20.20.20.240 ------------------------->|                   |            |           |
|                       |                |                   |            |           |
|                       |                ---------------------            -------------
|                       |
|                       |
|                       |                ----------------
| All other traffic -------------------->| Internet/ISP |
|                       |                |              |
-------------------------                ----------------
This also means that both the linux firewall and the hardware firewall will have different public ip adresses and different internet connections.
I hope you understand what i mean.
And thanks again for helping out

Last edited by pandersson61; 10-06-2015 at 10:38 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2 Internet Connections With Shorewall sl4ck3r Linux - Networking 2 03-26-2011 08:00 AM
Shorewall firewall/router on FC5 not adding default route at boot mbradshaw93 Linux - Networking 0 06-26-2007 04:28 PM
Shorewall static route problem leiw General 1 11-15-2006 04:48 PM
[shorewall]: Limiting SSH connections coralsaw Linux - Security 1 07-16-2006 07:48 AM
No Shorewall/IPtables: not inbound connections allowed psychobyte Mandriva 3 05-25-2005 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration