Re: help getting fc4 working with dual nics and vpn

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/13/06, Mike Wright <xktnniuymlla@xxxxxxxxxxxxxx> wrote:
Randy Paries wrote:
> hello,
> I have a linux box that is running fc4. It has two nics on it.
> One Nic has a public IP that is locked down tight with IPtables.
> the second nic is connected to a lan with 192.168.0.x ips.
>
> I have a VPN router that has a public IP that also connects to the
> 192.168.0.x lan.
>
> I am have problems i think with routing.
>
> if my default route on the linux box points to my main router with the
> public ip , i can access the linux box via the public IP (if i open up
> iptables), but i can not access the linux box via the VPN and the lan
> IP.
>
> if i change the default route on this linux box to be the VPN router,
> i can connect the linux box via the local ip (when logged into the
> VPN) , but can not longer connect to the public ip.
>
> i  think i need to add some route statements,

Definitely not a network guru and I've never worked with a VPN router
before, so I may be way off base, but if you're just trying to reach
some remote IP(s) by way of the VPN router you could try something like
this.

"/sbin/ip route add REMOTE_IP/NETMASK via LAN_IP dev ethX"

If the remote IP(s) are on different subnets you would use multiple
statements.  Change ethX to whichever nic is connected to the VPN.

Hope it works!


MIke

the REMOTE_IP is that the IP of my client (ie laptop connected in a hotel room?)

if so , i guess this will not work since my IP on the cleint side will
always change, or is this the IP of the VPN ROUTER?

Thanks
Randy

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux