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.
Hi guys!
I have a situation, that I need to connect to my work vpn, but my vpn pptp client is on local network behind linux router (Slackware with 2.4.22 kernel)! I have tried to configure my Linux router box with iptables, but it seems that I haven't got any progress.
So far I have tried the following:
Where 80.80.80.80 would be the public address of my local network (linux router eth0), but 1.1.1.1 is the address of PC in my local network, where the VPN client is.
Could anyone help me to solve the problem, please?
to have a look at the counters while you try to connect to this VPN from outside to see whether these packets are actually matching these rules or not.
If they match these rules & you see counters moving, then we can further do the troubleshooting at the LAN part or a POSTROUTING rule can do the rest.
I checked but it seems that there was no activity (I coudn test it right now, but it seems, that there wasn't any activity earlier). The only activity is for rules below, but I thin they are wrong, because eth1 is the nic for local area network of linux router..
I am afraid that i can't test it right now , because the person who is having the computer of vpn client, which needs to connect to vpn is not currently available, but I haven't got access rights to that vpn! I will try to test it as soon as possible!
Is there anything else wich is important to set it up or is it enough with rules mentioned earlier?
Make sure that your 1.1.1.1 box should be having your this firewall box as its gateway or otherwise you got to add another POSTROUTING rule as well.
Rest is OK.
ANd yea.. i hope you must be having ip forwarding enabled at your box, You can check it with
Code:
cat /proc/sys/net/ipv4/ip_forward
Last edited by amitsharma_26; 12-08-2006 at 06:41 PM.
Yes it is set up as a gateway for my 1.1.1.1 box and /proc/sys/net/ipv4/ip_forward is set up to "1" at linux router box.
I have another question... Is it necessary also to pass the source and destination parameters in rules? I have also tried rules which mach the destination (they are actually applied, but are below rules I mentioned above when I try watch -n1 " iptables -t nat -nvL"):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.