nemesis01 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/110071273742a841450fd22.jpg)
Joined: 19 May 2005 Posts: 52
|
Posted: Thu Jul 07, 2005 6:33 pm Post subject: vpnc works. nat? network gods have mercy (noob) |
|
|
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 |
|