Article View: linux.redhat.misc
Article #33Re: VPN Behind a redhat 7.3 gateway
From: Michael Hart
Date: Thu, 10 Apr 2003 21:10
Date: Thu, 10 Apr 2003 21:10
81 lines
4477 bytes
4477 bytes
Thanks Joerg, I have created some logs. Here is what they look like. I am not sure what they mean. It looks to me like its logging the request on the first line but I have some rule somewhere that blocks the NATed packet. Apr 11 07:15:47 Gateway kernel: IN=eth1 OUT= MAC=00:80:c8:4e:1a:33:00:50:ba:d1:a3:82:08:00 SRC=192.168.0.11 DST=192.168.0.1 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=26112 DF PROTO=TCP SPT=1030 DPT=1723 WINDOW=8192 RES=0x00 SYN URGP=0 Apr 11 07:15:47 Gateway kernel: IN=eth1 OUT=eth1 SRC=192.168.0.11 DST=192.168.0.12 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=26112 DF PROTO=TCP SPT=1030 DPT=1723 WINDOW=8192 RES=0x00 SYN URGP=0 Apr 11 07:15:49 Gateway kernel: IN=eth1 OUT= MAC=00:80:c8:4e:1a:33:00:50:ba:d1:a3:82:08:00 SRC=192.168.0.11 DST=192.168.0.1 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=26368 DF PROTO=TCP SPT=1030 DPT=1723 WINDOW=8192 RES=0x00 SYN URGP=0 Apr 11 07:15:49 Gateway kernel: IN=eth1 OUT=eth1 SRC=192.168.0.11 DST=192.168.0.12 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=26368 DF PROTO=TCP SPT=1030 DPT=1723 WINDOW=8192 RES=0x00 SYN URGP=0 I have default policies of DROP $IPTABLES -P INPUT DROP $IPTABLES -F INPUT $IPTABLES -P OUTPUT DROP $IPTABLES -F OUTPUT $IPTABLES -P FORWARD DROP $IPTABLES -F FORWARD I have a rules that let all input and output on the internal interface $IPTABLES -A INPUT -i $INTIF -j ACCEPT $IPTABLES -A OUTPUT -o $INTIF -j ACCEPT I have catchall rules for INPUT and OUTPUT packets for logging $IPTABLES -A INPUT -s $UNIVERSE -d $UNIVERSE -j drop-and-log-it $IPTABLES -A OUTPUT -s $UNIVERSE -d $UNIVERSE -j drop-and-log-it Michael "Joerg Morbitzer" <jomo@sol-3.de> wrote in message news:b73k9i$akska$1@ID-162417.news.dfncis.de... > Michael Hart wrote: > > > I am running an NT VPN server on a local subnet behind a RedHat 7.3 > > gateway. > > > > I can log onto the NT VPN locally using its local net IP address (i.e. the > > VPN seems to be set up correctly) but cannot log on through the gateway > > (i.e. NAT appears to be not working correctly). > > > > I have set up VPN masqurading as per > > http://www.impsec.org/linux/masquerade/ip_masq_vpn.html > > > > i.e. > > > > /sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 1723 -j DNAT > > --to 192.168.0.40 > > /sbin/iptables -t nat -A PREROUTING -i eth1 -p 47 -j DNAT --to > > 192.168.0.40 > > > > I don't know if I have to patch the kernel or recompile it with various > > options > > > > I am using kernel 2.4.19 > > > > Kernel modules include IP tunnelling. > > > > Any help appreciated !!! > > > > Michael > > It is always good to add more logging to your firewall rules, so before your > DNAT setup use the same rule with -j LOG and check the logs. Also, does the > NT VPN server has a correct route back to the originating ip address? >
Technical Details
Message-ID:
<J4lla.7722$1h6.62828@news-server.bigpond.net.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!abnormal.com!vicpull2.telstra.net!lon-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mailReferences:
<d86la.5914$1h6.50238@news-server.bigpond.net.au> <b73k9i$akska$1@ID-162417.news.dfncis.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa2c1,ec6ca9a44d72332 X-Google-Attributes: gidfa2c1,public X-Google-Thread: 111240,ec6ca9a44d72332 X-Google-Attributes: gid111240,public X-Google-Thread: 102983,ec6ca9a44d72332 X-Google-Attributes: gid102983,public X-Google-Thread: 10669a,ec6ca9a44d72332 X-Google-Attributes: gid10669a,public X-Google-Thread: 115bae,ec6ca9a44d72332 X-Google-Attributes: gid115bae,public X-Google-ArrivalTime: 2003-04-10 14:10:00 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!abnormal.com!vicpull2.telstra.net!lon-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: "Michael Hart" <mixstat-donotspam@bigpond.net.au> Newsgroups: linux.redhat.misc,aus.computers.linux,comp.os.ms-windows.networking.ras,comp.os.ms-windows.nt.admin.networking,comp.os.linux.networking References: <d86la.5914$1h6.50238@news-server.bigpond.net.au> <b73k9i$akska$1@ID-162417.news.dfncis.de> Subject: Re: VPN Behind a redhat 7.3 gateway Lines: 83 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <J4lla.7722$1h6.62828@news-server.bigpond.net.au> Date: Thu, 10 Apr 2003 21:10:01 GMT NNTP-Posting-Host: 144.137.82.237 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1050009001 144.137.82.237 (Fri, 11 Apr 2003 07:10:01 EST) NNTP-Posting-Date: Fri, 11 Apr 2003 07:10:01 EST Organization: BigPond Internet Services (http://www.bigpond.net.au)