All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rangi Biddle" <rangi@ngen.net.nz>
To: lartc@vger.kernel.org
Subject: [LARTC] RE: VPN Solution
Date: Wed, 22 Nov 2006 02:20:46 +0000	[thread overview]
Message-ID: <000901c70ddc$d53cb440$0101010a@lamachine> (raw)
In-Reply-To: <000601c70d37$a48d3b30$0101010a@lamachine>


[-- Attachment #1.1: Type: text/plain, Size: 1989 bytes --]

Hi List,

 

This is an update for anyone that has been attempting to get a PPTP VPN
working using PopTop with more than one simultaneous connection from an
external source to a PPTP VPN behind a router that is NATing connections
through.  I assume that whoever is setting this up has some general
knowledge of linux and how to compile a kernel.  I also make the assumption
that you already have a PPTP server up and running but are requiring more
than one simultaneous connection.  I also offer no warranties or take on any
responsibility on whether or not this breaks your system and causes damage
of any kind.

 

With that said, I used the most recent kernel (2.6.18.3) and used all the
default settings and added in all (except the experimental) iptables
modules.  I also added in PPP MPPE support (even though it is experimental).
To make things easier on myself I compiled the kernel as a binary RPM
package since the distro that I am using uses RPMs.

 

After installing the new kernel I made modifications to my boot loader (in
my case grub) to use the new kernel and then rebooted the system.

 

I used the following IPTables rules:

 

iptables -t nat -A POSTROUTING -j MASQUERADE - (Very general masquerading -
not recommended and should be tied down to specific subnets)

iptables -A INPUT -p tcp -dport 1723 -j ACCEPT (Accept inbound PPTP
connections)

iptables -A INPUT -p gre -j ACCEPT (Accept inbound GRE connections)

iptables -A OUTPUT -p gre -j ACCEPT (Accept outbound GRE connections)

 

I executed the command:

 

service iptables save

 

to save my newly added iptables rules.

 

I then edited /etc/rc.local and added in the following lines

 

modprobe ip_nat_pptp

modprobe ip_conntrack_pptp

 

Which loads the additional modules needed for PPTP NAT connections and
finally rebooted the system once more to make sure everything starts up as
expected.

 

If you have any problems please mail them to the list and I will see if I
can be of some assistance.


[-- Attachment #1.2: Type: text/html, Size: 7098 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

  parent reply	other threads:[~2006-11-22  2:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-21  6:38 [LARTC] RE: VPN Solution Rangi Biddle
2006-11-21  8:16 ` Rangi Biddle
2006-11-21  8:36 ` Rangi Biddle
2006-11-22  2:20 ` Rangi Biddle [this message]
2006-11-22 14:55 ` Taylor, Grant
2006-11-22 20:13 ` Rangi Biddle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000901c70ddc$d53cb440$0101010a@lamachine' \
    --to=rangi@ngen.net.nz \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.