![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Networking & Wireless Having problems getting connected to the internet or getting your wireless card to work? Ask here. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2006
Location: Stockholm/Sweden
Beans: 95
Ubuntu 7.10 Gutsy Gibbon
|
My Ubuntu Edgy computer is a NAT server. How does I make it possible for at least one (but possible many) LAN clients to use a PPTP VPN?
Which kernel modules must I insert? Iptables rules? Getting panic here ... Regards Fredrik |
|
|
|
|
|
#2 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2006
Location: Belgium
Beans: 2,108
Ubuntu 8.04 Hardy Heron
|
Re: Make my NAT computer do PPTP VPN pass through
pptp passes through nat transparently, i.e. if you allow everything out, and established in, it should work. If you want it more secure, you can specify ip addresses of servers you want to connect to, and port numbers (look up what ports pptp uses).
|
|
|
|
|
|
#3 | |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2006
Location: Stockholm/Sweden
Beans: 95
Ubuntu 7.10 Gutsy Gibbon
|
Re: Make my NAT computer do PPTP VPN pass through
Quote:
The VPN works fine if I'm not behind NAT. Are you sure there are no kernel modules (conntrack etc) that are needed? |
|
|
|
|
|
|
#4 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2006
Location: Belgium
Beans: 2,108
Ubuntu 8.04 Hardy Heron
|
Re: Make my NAT computer do PPTP VPN pass through
According to the documentation, al you need is to allow traffic towards the vpn you're connecting to (tcp port 1743) + allow the replies ('established') and it will be NATed no problem.
I checked my NAT box and it does have contrack installed - i probably included it when first installing iptables, so I can't verify if it would work without. I think you only need contrack if your iptables uses 'state' such as 'related'. |
|
|
|
|
|
#5 | |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2006
Location: Stockholm/Sweden
Beans: 95
Ubuntu 7.10 Gutsy Gibbon
|
Re: Make my NAT computer do PPTP VPN pass through
Quote:
ip_conntrack_pptp ip_conntrack_proto_gre ip_nat_pptp ip_nat_proto_gre I still can't get it to work |
|
|
|
|
|
|
#6 |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2006
Location: Belgium
Beans: 2,108
Ubuntu 8.04 Hardy Heron
|
Re: Make my NAT computer do PPTP VPN pass through
I only have these, and a working pptp :
Code:
stargate:~# lsmod Module Size Used by Not tainted ipt_MASQUERADE 1216 1 ipt_state 608 2 iptable_filter 1728 1 iptable_nat 12628 3 [ip_nat_ftp ip_nat_irc ipt_MASQUERADE ipt_REDIRECT] ip_conntrack 12652 4 [ip_conntrack_ftp ip_conntrack_irc ip_nat_ftp ip_nat_irc ipt_MASQUERADE ipt_REDIRECT ipt_state iptable_nat] ip_tables 10432 21 [ipt_LOG ipt_MARK ipt_MASQUERADE .... |
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2006
Location: Stockholm/Sweden
Beans: 95
Ubuntu 7.10 Gutsy Gibbon
|
Re: Make my NAT computer do PPTP VPN pass through
I'm just curious; where comes GRE into the picture?
|
|
|
|
|
|
#8 | |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2006
Location: Belgium
Beans: 2,108
Ubuntu 8.04 Hardy Heron
|
Re: Make my NAT computer do PPTP VPN pass through
GRE does the encaptulation of packages that are send after the pptp connection is established.
Quote:
|
|
|
|
|
|
|
#9 | |
|
Chocolate-Covered Ubuntu Beans
![]() Join Date: Nov 2006
Location: Belgium
Beans: 2,108
Ubuntu 8.04 Hardy Heron
|
Re: Make my NAT computer do PPTP VPN pass through
Quote:
|
|
|
|
|
|
|
#10 | |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2006
Location: Stockholm/Sweden
Beans: 95
Ubuntu 7.10 Gutsy Gibbon
|
Re: Make my NAT computer do PPTP VPN pass through
Quote:
Actually, the hosts on the "LAN" is virutal machines running on the Edgy computer. But the behave like they are sitting on a LAN. But what could go wrong then? I have no firewall rules at all. Si there any way to se what happens when the client connects to the VPN? |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|