From: "R. Sterenborg" <rsterenborg@xs4all.nl>
To: netfilter@lists.samba.org
Subject: RE: PPTP through masquerading gateway
Date: Tue, 9 Jul 2002 00:31:41 +0200 [thread overview]
Message-ID: <001c01c226cf$3bc72d70$0401000a@win2k> (raw)
In-Reply-To: <000d01c226c1$9a049390$6b01a8c0@s3ac>
> -----Original Message-----
> From: netfilter-admin@lists.samba.org
[mailto:netfilter-admin@lists.samba.org]On
> Behalf Of Rowan Reid
> Subject: RE: PPTP through masquerading gateway
>
> I've been trying to get this to work. with no luck. I've used the POM
module which
> fails everytime I try to patch my kernel 2.4.4 and up
> no luck even on a freshly downloaded kernel. other patches work but pptp
does not. I
> tried another patch which patched my 2.4.18 kernel
> but all my connections fail to make it to my server. I woudl love to talk
to
> at least one person who HAS gotten this to work.
Ok.. I did it this way.
I'm going through it step by step, so don't flame me for describing steps
that seem obvious.
I used :
- kernel 2.4.17 (Because the patch is for *that* kernel. I'm no hacker so
I'm not going to try it on another kernel...).
- the PPTP kernel patch from
http://www.impsec.org/linux/masquerade/ip_masq_vpn.html.
- iptables-1.2.6a.
- the default gcc from RH-7.3 (2.96, I know, I know...)
Untar the kernel source to /usr/src/linux.
Untar the patch to /usr/src.
Untar iptables to /usr/src/iptables-1.2.6a
cd /usr/src
patch –p0 < netfilter-pptp-2.4.17-rev2.patch
cd /usr/src/iptables-1.2.6a
make pending-patches KERNEL_DIR=/usr/src/linux
If all went well go ahead and configure your kernel.
cd /usr/src/linux
make xconfig (or whatever you like to use)
Check all (networking) options that apply.
There are two new options in the kernel config :
- Networking options -> IP: Netfilter Configuration -> PPTP protocol support
- Networking options -> IP: Netfilter Configuration -> PPTP verbose debug
Make sure you check the first.
If you want ***LOT'S*** of logging in syslog, also check the second.
(You could try that, see what it's all about when you got it to work and
after that recompile the kernel without it ;o] You don't need it for normal
operation.)
make dep clean
make bzImage (or some other ?)
make modules modules_install
Copy the ./arch/i386/boot/bzImage file to /boot
Copy ./System.map to /boot
Change your lilo.conf or grub.conf to let the new kernel show up in the
bootmanager. (Lilo needs you to run "lilo" to reflect the changes.)
cd /usr/src/iptables-1.2.6a
make KERNEL_DIR=/usr/src/linux
make install KERNEL_DIR=/usr/src/linux
Reboot and make sure to boot the new kernel.
Now for the forwarding rules.
I'm taking values from this post. Since it's not mentioned, I take eth0 as
the LAN NIC.
http://www.netfilter.org/documentation/tutorials/blueflux/iptables-tutorial.
html#TRAVERSINGOFTABLES
Table 3-1. We are forwarding packets -> our packets will be going through
the PREROUTING chain and the FORWARD chain, so we'll need rules for both of
them.
iptables -A FORWARD -p tcp -i ppp0 -o eth0 -d 10.1.1.15 --dport 1723 -j
ACCEPT
iptables -A FORWARD -p 47 -i ppp0 -o eth0 -d 10.1.1.15 -j ACCEPT
iptables -t nat -A PREROUTING -p tcp -i ppp0 -d <external-ip> --dport
1723 -j DNAT --to 10.1.1.15:1723
iptables -t nat -A PREROUTING -p 47 -i ppp0 -d <external-ip> -j DNAT --to
10.1.1.15
Of course you need to set additional rules for your firewall to work.
Well, this should do it. It does for me.
Hope I was of help and wasn't talking too much rubbish.
Rob
next prev parent reply other threads:[~2002-07-08 22:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-08 18:16 PPTP through masquerading gateway Marc Riddle
2002-07-08 19:15 ` Aldo S. Lagana
2002-07-08 20:54 ` Rowan Reid
2002-07-08 21:06 ` Aldo S. Lagana
2002-07-08 22:19 ` Rowan Reid
2002-07-08 22:31 ` R. Sterenborg [this message]
2002-07-08 23:44 ` Rowan Reid
2002-07-09 6:17 ` R. Sterenborg
[not found] <200207091052.55364.fabrice@celestix.com>
2002-07-09 2:08 ` Rowan Reid
[not found] <000a01c22798$9a5773d0$0401000a@win2k>
2002-07-09 22:35 ` Rowan Reid
2002-07-10 6:10 ` R. Sterenborg
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='001c01c226cf$3bc72d70$0401000a@win2k' \
--to=rsterenborg@xs4all.nl \
--cc=netfilter@lists.samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox