LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 05-27-2004, 01:31 PM   #1
mdkelly
LQ Newbie
 
Registered: Jan 2003
Posts: 15

Rep: Reputation: 0
need to set up internal LAN gateway for VPN


Hi all,

I am in a situation where I am trying to setup openVPN to connect our two offices. I have openVPN running at both offices and I can ping each endpoint from the other endpoint.

However, each office has a hardware router that does not support static routes so I need to have a machine, the same machine running openVPN, to serve as a gateway for the office so that all system behind the routers on each end will be able to see all the other systems on each end.

How can I setup a gateway/firewall using iptables so that all traffic intended for the openVPN tunnel gets routed through the tunnel, but all other traffic gets sent to the router normally.

The openVPN machine is just a machine on the internal network that connects to the Internet via a hub and the router.

Unfortunately the current physical network setup cannot be changed as the higher ups want to keep the hardware router as the NAT and firewall device.

I hope I have explained clearly enough to get some suggestions.

Thanks for your time
mdkelly
 
Old 05-28-2004, 09:07 AM   #2
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
You could add static routes on all the client machines for the VPN.

If you stop the NAT routing acting as a dhcp server and provide an alternative dhcp server you can give the client machines the ip of the VPN box as their default gateway and set a route on the vpn box that forwards traffic to the NAT router.

You could put two network cards in the VPN box. Put the LAN on one card and the NAT router on the other. Run NAT inside a NAT setup with your own DHCP server on the LAN interface and seperate subnets.

PS this should be in general networking not the wireless section.
 
  


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
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
No Internet but LAN and VPN connect LAN work fine??? xavior SUSE / openSUSE 7 11-09-2005 01:14 PM
machine has adsl ethernet modem, to make it gateway over lan do i need more lan cards b0nd Linux - Networking 2 10-04-2005 10:19 PM
VPN Internal net question DeadEcho5 Linux - Security 1 05-20-2004 06:00 PM
LAN interface on Gateway stops being able to send info to LAN intermittantly. BurnFEST Debian 2 11-01-2003 03:16 AM

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

All times are GMT -5. The time now is 03:17 PM.

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