Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-15-2005, 04:25 AM
|
#1
|
LQ Newbie
Registered: Jul 2005
Posts: 3
Rep:
|
VPN gateway with linux BOX
hello,
i have 2 big problem:
1) I do not speak well English
2) I do not succeed to create one logon VPN through a linux gateway
this is my configuration:
CLIENT XP WINDOWS CLASS C 192.168.2.0/24
|
|
|
| ETH1 - SERVER LINUX FC3 192.168.2.1
| ETH0 - SERVER LINUX FC3 <PUBLIC_IP>
|
|
ADSL ROUTER
|
| INTERNET
|
REMOTE SERVER <RE.MO.TE.IP>
small iptables configuration SERVER LINUX FC3
iptables --flush
iptables -t nat --flush
iptables --delete-chain
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe ip_nat_ftp
modproble ip_conntrack_ftp
iptables -t nat -A POSTROUTING --out-interface eth0 -j MASQUERADE
with this simple configuration the CLIENT XP do not succeed to create one logon VPN with the REMOTE SERVER....
if I add this line to the rules of iptbles:
iptables -t nat -A PREROUTING -d eth0 -p gre -j DNAT --to 192.168.2.2
the client with address 192.168.2.2 it succeeds to be connected !!!
how I can make why all succeed to be connected?
help me please
Paolo
|
|
|
07-16-2005, 02:23 PM
|
#2
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
there are many things that could be wrong. Let's see.
You say that the router is able to connect to the VPN? That could be because the VPN client is "opening" a port that the server has to connect to. What are the rules you have for INPUT? (iptables -L INPUT -nv)
now that I'm checking your rules... what does the second rule mean? are you sure it's correct? 
iptables -t nat -A PREROUTING -d eth0 -p gre -j DNAT --to 192.168.2.2
is it -i eth0?
|
|
|
07-18-2005, 01:11 AM
|
#3
|
LQ Newbie
Registered: Jul 2005
Posts: 3
Original Poster
Rep:
|
>now that I'm checking your rules... what does the second rule mean? are you sure it's correct?
>iptables -t nat -A PREROUTING -d eth0 -p gre -j DNAT --to 192.168.2.2
>is it -i eth0?
yes, it's corrected.
when I add this line, client 192.168.2.2, works.
through tcpdump I see that packet GRE that arrive from the REMOTE SERVER do not come address to you in the correct way.
when I add the rule over, all the packages sell address you to address 192.168.2.2, for this reason the client 192.168.2.2 work !!!
help !!
|
|
|
07-18-2005, 09:26 AM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Rep:
|
Ok... so you are able to connect client 192.168.2.2 if you use that rule in the firewall... if you don't, the connection fails, right?
|
|
|
07-18-2005, 10:38 AM
|
#5
|
Senior Member
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458
Rep:
|
do iptables-save to list all active rules and POLICYs
There are 4 conntrack modules which handles the extra GRE traffic. They will need to be compiled into the kernel and iptables.
They come from the pptp_conntrack_nat patch at
http://www.netfilter.org/patch-o-mat...-conntrack-nat
|
|
|
08-02-2005, 09:43 PM
|
#6
|
LQ Newbie
Registered: Jun 2005
Location: Christchurch, New Zealand
Distribution: Slackware but I compile everything anyway
Posts: 1
Rep:
|
hi jobbe
the standard FC kernels dont have the patch for correct NAT-ing of PPTP clients. its a tricky situation and you will need to patch the netfilter modules in the kernel and re-compile.
does anyone know of FC kernel RPMs that have this built in?
|
|
|
All times are GMT -5. The time now is 12:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|