Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vpnc works. nat? network gods have mercy (noob)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nemesis01
n00b
n00b


Joined: 19 May 2005
Posts: 52

PostPosted: Thu Jul 07, 2005 6:33 pm    Post subject: vpnc works. nat? network gods have mercy (noob) Reply with quote

I have emerged vpnc, and set up the config file. It works great. I can connect to my network at work. Here is my setup and what I am trying to do.

2+ computers. 1 of the comps is a router/gateway with dual nics. 1 hardware router. (I have a few static ip's with my isp)

The HW Router is what connects all my comps together at GW 10.10.10.5. I have one external connection to my HW Router and another seperate external connection to my gentoo router box.

gentoo router box:
eth0 10.10.10.25
eth1 [external ip] (call it XIP)

added static route to HW Router:
Destination Lan IP: 192.168.250.0
Subnet Mask: 255.255.255.0
Default Gateway: 10.10.10.25
Metric: 0
interface: LAN

1. I want to activate the tun device on eth1.
2. I want my other computers to be nat/masq'ed in to the tun device.
3. I don't want the tun/vpn device to go through eth0 which has my gateway of 10.10.10.5 (the HW Router). Looking for all traffic for the tunnel to go out on eth1.
4. Drop packets from my work that is coming in to tun that I did not initiate. (maybe it does this already?)
5. Drop all packets not tun related directed at eth1

When I am connected, my ifconfig is this:

Code:

vpnuni    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:192.168.251.133  P-t-P:192.168.251.133  Mask:255.255.255.255          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1412  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


I issue the command vpnc-connect and it connects. Not sure how I say set this up on eth1?

Any help greatly appreciated.

Thanks,
Nemesis01
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
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