Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need help configuring the iptables and routing for a VPN machine.
The VPN has been set up with two nics both with ip addresses on the local network. The firewalls (a D-Link box and a LinkSys Box) have enabled a DMZ pointing to one of the nics.
I'm using debian 3.01 with kernel 2.4.19.
The VPN machine connects to the VPN alright but i want to use it as the gateway for the other machines on the network (all windows) so that they connect to the other network (192.168.2.*) through the VPN connection on the linux box. We can set the windows to have two gateways to enable them to access the internet in general without going through the linux box.
This code sets up the bridge.
#!/bin/sh
#Create the Interface (br0)
brctl addbr br0
#Add the interface cards to the bridge
brctl addif br0 eth0
brctl addif br0 eth1
#Start the ethernet devices
ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0
#Setup the bridge
ifconfig br0 192.168.1.199 netmask 0.0.0.0
#Setup the local card
ip addr add 192.168.1.200/24 dev br0
#Add a default route
route add default gw 192.168.1.1
ok which kind of VPN are you using? pptp, IPSEC, or another, that will be helpful to those trying to assist you. secondly if your experience ends up being at all like mine you'll pull your hair out. a quick aside when I was getting a pptp vpn up it took me weeks to get a config correct for users to logon, then once that was set I was working on the routing to other machines, then all of a sudden, I can no longer logon through my internet connection from machines outside my modem, I have since moved and have anew modem and service yet am still unable to logon from outside my in-house network. But back to you. If it's a pptp connection there's some killer stuff at this place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.