From: "Rob Sterenborg" <rob@sterenborg.info>
To: 'Netfilter/IPTables Mailing List' <netfilter@lists.netfilter.org>
Subject: RE: IPtables redirect rules
Date: Mon, 12 May 2003 23:05:14 +0200 [thread overview]
Message-ID: <000201c318ca$2f0e69c0$0401000a@sterenborg.info> (raw)
In-Reply-To: <00ee01c318c4$8616be80$0a00a8c0@sic.local>
> VPN, but with Win2K. So I want to redirect all VPN
> requests from the linux machine to my Win2K server.
> How can I do that?
Patch the kernel with the latest patch-o-matic. You need the pptp
conntrack and nat modules.
Configure the kernel so that you get the pptp conntrack and nat modules,
then compile and install it.
Make sure you load the modules when you rebooted and everything goes
well.
The iptables rules :
iptables -P FORWARD DROP
iptables -A FORWARD -i <if_inet> -d <pptp_svr_ip> \
-m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i <if_inet> -d <pptp_svr_ip> \
-p gre -j ACCEPT
iptables -A FORWARD -i <if_inet> -d <pptp_svr_ip> \
-p tcp --dport 1723 -j ACCEPT
iptables -t nat -A PREROUTING -i <if_inet> -p gre \
-j DNAT --to-destination <pptp_svr_ip>
iptables -t nat-A PREROUTING -i <if_inet> -p tcp \
--dport 1723 -j DNAT --to-destination <pptp_svr_ip>
But I have to tell you (and I read it from other people too) : I got
this working in the past (with kernel 2.4.17), but somehow I can't get
it working anymore. So I installed the poptop server which works fine.
Gr,
Rob
prev parent reply other threads:[~2003-05-12 21:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-12 20:24 IPtables redirect rules Linux
2003-05-12 21:05 ` Rob Sterenborg [this message]
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='000201c318ca$2f0e69c0$0401000a@sterenborg.info' \
--to=rob@sterenborg.info \
--cc=netfilter@lists.netfilter.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