LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-28-2009, 01:26 AM   #1
Yahweee
LQ Newbie
 
Registered: Feb 2006
Posts: 6

Rep: Reputation: 0
VPN with Iptables


My current setup is like this I am running a transparent squid proxy for my internet users. This is the rule that is redirect http traffic to use squid :-

iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080

In this case the Linux server is the gateway to all the LAN computers, so when this rule is active a Microsoft VPN client (using pptp port 1194) is failing to connect to the VPN server via internet thru the Linux server. What is happening is that the VPN client traffic is assumed to be internet traffic then is redirected to use squid. I wish to implement iptables that handles VPN client traffic sends it out to the internet.

Here is my diagram :-

Windows Client -------------------------- Linux server--------------------- ADSL Router---------Internet
192.168.1.x eth1 eth0 10.0.0.y
192.168.1.y 10.0.0.x

I will be glad if you can help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables / VPN saavik Linux - Networking 1 01-28-2009 08:41 AM
iptables and VPN dellcom1800 Linux - Networking 3 06-05-2008 07:59 AM
vpn behind iptables kris2002 Linux - Networking 3 06-26-2005 10:18 AM
iptables VPN bentman78 Linux - Software 0 05-03-2004 07:27 AM
iptables and vpn buttnutt Linux - Security 1 05-29-2002 02:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration