Can't reach MS VPN server behind IPTABLES firewall
From: J. Kang (jskang0l@yahoo.com)Date: 01/17/02
- Previous message: Marc Greene: "Re: security for newbies?"
- Next in thread: David Chuha: "Re: Can't reach MS VPN server behind IPTABLES firewall"
- Reply: David Chuha: "Re: Can't reach MS VPN server behind IPTABLES firewall"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: jskang0l@yahoo.com (J. Kang) Date: 17 Jan 2002 08:06:41 -0800
I am in need of some help here. I have searched all over the Internet
(including the comp.* newsgroups) for some help in configuring a RH
7.2 server running an IPTABLES firewall so that my users can access a
Microsoft VPN server running on NT that resides behind the firewall.
I've got the following in my firewall script:
#
# Adds some iptables targets like LOG, REJECT and MASQUARADE.
#
/sbin/modprobe ipt_LOG
#/sbin/modprobe ipt_REJECT
/sbin/modprobe ipt_MASQUERADE
#
# Support for owner matching
#
#/sbin/modprobe ipt_owner
#
# Support for connection tracking of FTP and IRC.
#
/sbin/modprobe ip_conntrack_ftp
#/sbin/modprobe ip_conntrack_irc
#
# Enable ip_forward, this is critical since it is turned off as defaul
in
# Linux.
#
echo "1" > /proc/sys/net/ipv4/ip_forward
#
# Enable simple IP Forwarding and Network Address Translation
#
$IPTABLES -t nat -A POSTROUTING -o $INET_IFACE -j SNAT --to-source
$INET_IP
[ ... ]
#
# VPN related packets get special forward rule
#
$IPTABLES -A FORWARD -p tcp -s $INET_IP --sport 1723 -d 10.1.1.1 \
--dport 1723 -j ACCEPT
$IPTABLES -A FORWARD -p 47 -s 0/0 \
-d 10.1.1.1 -j ACCEPT
[ ... ]
$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 1723 -j allowed
------------------------------------------------------
Is this right? Is this completely wrong? What am I missing?
I have been running Ethereal on my firewall box watching the traffic
come in from a client Win98 laptop. I see the traffic come into the
firewall box, but at no time do I see the firewall forwarding the
traffic to the VPN server.
I also have what I think are the relevant statements from our older
IPFWADM firewall (running on an older RH server). Maybe this would
help or someone could help translate it into IPTABLES commands?
---------------------------------------
ipportfw -C
ipportfw -A -t <INET_IP_ADDRESS>/1723 -R 10.1.1.1/1723
ipportfw -L
#
ipfwd --syslog --masq 10.1.1.1 47 &
----------------------------------------
Any help would be appreciated.
- Next message: Oo.et.oO: "ssh unbearably slow to one host on 192.168 subnet only"
- Previous message: Marc Greene: "Re: security for newbies?"
- Next in thread: David Chuha: "Re: Can't reach MS VPN server behind IPTABLES firewall"
- Reply: David Chuha: "Re: Can't reach MS VPN server behind IPTABLES firewall"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|