All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: VPN question
@ 2003-10-14 15:25 patrick kuah
  2003-10-14 17:45 ` Chris Brenton
  0 siblings, 1 reply; 15+ messages in thread
From: patrick kuah @ 2003-10-14 15:25 UTC (permalink / raw)
  To: cbrenton; +Cc: netfilter

Thanks Chris :)

I'm using ipsec. Currently, my iptables is configured using stateful packet 
inspection.
Do i have to add the rules for port TCP/UDP 50 and TCP 50 ???
Thank you :)

patrick


>From: Chris Brenton <cbrenton@chrisbrenton.org>
>To: patrick kuah <patrickkuah@msn.com>
>CC: netfilter@lists.netfilter.org
>Subject: Re: VPN question
>Date: 14 Oct 2003 06:44:27 -0400
>
>On Tue, 2003-10-14 at 06:19, patrick kuah wrote:
> > Hi all,
> >
> > I have configured a SNAT rule in my iptables but after configuring, i 
>can't
> > VPN to my server which reside on another network.
>
>Do you see this traffic being dropped by your logs?
>
> > Do i need to add rule for VPN traffic to flow through the SNAT? If yes, 
>what
> > are the rule?
>
>VPN is a generic term. What kind of VPN are you talking about? IPSec?
>PPTP? SSL?
>
>If you mean IPSec, you need to open UDP/500 to UDP/500 as well as
>protocol 50. You also want to make sure that IPSec/IKE is only
>negotiating ESP as a security service, not AH.
>
>HTH,
>C
>
>
>
>

_________________________________________________________________
Take a break! Find destinations on MSN Travel. http://www.msn.com.sg/travel/



^ permalink raw reply	[flat|nested] 15+ messages in thread
* VPN question
@ 2004-10-06 19:35 Sunny Shum
  2004-10-06 19:58 ` Jason Opperisano
  0 siblings, 1 reply; 15+ messages in thread
From: Sunny Shum @ 2004-10-06 19:35 UTC (permalink / raw)
  To: netfilter

Hello,
 
I am a newbie to the VPN setup.  Currently, my company has a Windows 2003
server behind a firewall (running iptables on RedHat 9).  I need to setup
VPN for a few executives so they can access the servers from home or on the
road.  I did some research and came to 3 options:
 
1. Run the VPN from the Windows 2003 server
2. OpenVPN
3. OpenSWAN or StrongSWAN
 
My questions are:
 
1. Is this the right place to ask questions regarding VPN, since this is
mainly an iptables-related list?  If not, can someone direct me to a
forum/list which will be helpful?  I really enjoy the information provide
from this list members.
 
2. If I choose option #2 or #3 above, how to set it up? I read the HOWTO
documents, but I am not sure where I should install the server side of the
VPN.  Do I install it on the firewall box?  Or the Windows 2003 box?
 
Thanks!
 
Regards,
Sunny
 
 
 

^ permalink raw reply	[flat|nested] 15+ messages in thread
* VPN question
@ 2004-09-22 13:55 Tony Gogoi
  2004-09-22 21:42 ` Tony Gogoi
  0 siblings, 1 reply; 15+ messages in thread
From: Tony Gogoi @ 2004-09-22 13:55 UTC (permalink / raw)
  To: linux-admin


Hello,

Can multiple IPSEC VPN clients (road-warrior type & private IP addresses)
connect to a VPN server from behind a NAT firewall?

The reason I pose this is: We have a linux firewall (not VPN gateway). As
long as a private internal IP address is NAT'ed to a unique external
address on the outgoing interface of the firewall, things are normal.

But if more than one VPN client from the private network gets masqueraded
to the outgoing interface, authentication is not even possible. This is
observed from TCPdump. Reason:

Let the outgoing interface of the firewall be 28.29.30.31.
Let there be 2 VPN clients: 192.168.17.20 and 192.168.17.40.

Then the first client (say 192.168.17.20) which requests authentication
from the remote VPN server (there is no VPN gateway at our end), sends a
request from 192.168.17.20-port isakmp. The firewall on its behalf sends a
request from 28.29.30.31-port isakmp and the remote VPN server responds
correctly to 28.29.30.31-port isakmp and client is authenticated.

The 2nd client sends a request from 192.168.17.40-port isakmp. The
firewall cannot reuse port isakmp and instead sends a authentication
request from 28.29.30.31-port 12 (say). The remote VPN server INCORRECTLY
responds to 28.29.30.31-port isakmp where it should have responded to port
12 of our firewall !!! So the firewall passses on thepacket to the first
VPN client (which is already authenticated).

Is it part of VPN protocol for a VPN server to reply authentication
requests to port isakmp? Or is it a configuration issue for the remote VPN
server?

Regards,
TOny

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: VPN question
@ 2004-08-17  8:51 urgrue
  2004-08-17 12:55 ` Adam Lang
  2004-08-20  1:42 ` Michael H. Warfield
  0 siblings, 2 replies; 15+ messages in thread
From: urgrue @ 2004-08-17  8:51 UTC (permalink / raw)
  To: linux-admin; +Cc: Tony Gogoi

This is all true, but one thing to check before embarking on this 
rather large project is whether your VPN fall into this category of 
"cant be NATted VPNs" in the first place.
Of the VPN solutions I've used, only IPSEC minds if the IPs are NATted. 
and if I remember correctly, IPSEC minds even if its a one-to-one NAT.

So I'd suggest you simply configure your router/firewall to NAT all 
those internal IPs to the same external IP and see if it works, before 
starting to set up a more complicated solution.


> Ok, so you are CLIENTS  connecting to a VPN server.  That whole 
> scenario you were speaking of is called NAT (private ip addresses are 
> mapped to a single public ip address.  The router/firewall keeps 
> track of the connections).

> That is not the problem though.  The issue is that some encryption 
> technologies do not allow the connections to be NATed because your 
> data packets are "mangled" to achieve this, and the encryption 
> protocol  requires packets to be unmodified so as to verify integrity.

> You have two options.  The first option is to get the people hosting 
> the VPN server to change what they are doing into somethign more NAT 
> friendly  (but loses a level of security) or work with them to set up 
> a vpn server in  your network that builds a conenction with their vpn 
> server.  Then, you set  up info on your routing tables to route over 
> it.  This way, you have a  single VPN connection, and all your 
> clients send data over it.


----- Original Message ----- From: "Tony Gogoi" <tgogoi@cse.Buffalo.EDU>
To: "Adam Lang" <aalang@rutgersinsurance.com>
Cc: <linux-admin@vger.kernel.org>
Sent: Monday, August 16, 2004 2:50 PM
Subject: Re: VPN question


> 
> Hi Adam,
> 
> I'm not too familiar with VPNs.
> 
> But our PC's sit on a LAN behind a firewall.  A few PC's are VPN 
> clients.
> Right now we have configured our firewall to map VPN clients on the
> private LAN to static external IP addresses. The rest of the PC's on 
> the
> LAN are mapped to a single IP address. We are running out of external 
> IP
> addresses. Was wondering if there was a way out instead of having to 
> buy
> more IP addresses.
> 
> So, i was wondering if there's a set up that could make our PC's 
> connect
> to some sort of VPN server at our end which would act as a gateway to 
> the
> actual server located far away.
> 
> Regards,
> Tony
> 
> On Mon, 16 Aug 2004, Adam Lang wrote:
> 
> > Obvious first question is: why is it a problem?
> > ----- Original Message -----
> > From: "Tony Gogoi" <tgogoi@cse.Buffalo.EDU>
> > To: <linux-admin@vger.kernel.org>
> > Sent: Monday, August 16, 2004 12:30 PM
> > Subject: VPN question
> >
> >
> > >
> > > Hello,
> > >
> > > Right now when we use the VPN each of our computers needs a unique
> > > external IP-address to communicate with the server.
> > >
> > > To overcome the problem of having a few external IP addresses,
> > > I was wondering if there's any software that would map all 
> client's
> > > external IP addresses to one unique IP address and communicate 
> with
the
> > > server through another software that would "decrpyt" the unique IP
address
> > > into individual ones.
> > >
> > > Regards,
> > > Tony Gogoi
> > > -
> > > To unsubscribe from this list: send the line "unsubscribe linux-
> admin"
in
> > > the body of a message to majordomo@vger.kernel.org
> > > More majordomo info at  http://vger.kernel.org/majordomo-info.
> html
> >
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-
> admin"
in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> 
> 
> 
> Tony Gogoi

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" 
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: SSH allow only form selected IP'
@ 2004-08-15 14:59 luke
  2004-08-16 11:23 ` James Turnbull
  0 siblings, 1 reply; 15+ messages in thread
From: luke @ 2004-08-15 14:59 UTC (permalink / raw)
  To: linux-admin

I'm definitely not a firewall expert, but isn't it also possible to
get around
IPchains using IP spoofing? From what I know ipchains is only
protected against spoofing by using source address verification.

Or am I way off?

Luke



> luke@techfreak.org wrote:
>
>>One very effective way that I have found to do this is to use the
'hosts.allow' file located at /etc/hosts.allow
> hosts.allow is NOT secure.  You can easily spoof the IP addresses
contained within it.  You should not use it.
>
> Regards
>
> James
>
>




^ permalink raw reply	[flat|nested] 15+ messages in thread
* VPN question
@ 2003-10-14 10:19 patrick kuah
  2003-10-14 10:44 ` Chris Brenton
  0 siblings, 1 reply; 15+ messages in thread
From: patrick kuah @ 2003-10-14 10:19 UTC (permalink / raw)
  To: netfilter

Hi all,

I have configured a SNAT rule in my iptables but after configuring, i can't 
VPN to my server which reside on another network.

Do i need to add rule for VPN traffic to flow through the SNAT? If yes, what 
are the rule?
Thank for all the help.

patrick

_________________________________________________________________
Download games, logos, wallpapers and lots more at MSN Mobile! 
http://www.msn.com.sg/mobile/



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-10-06 19:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-14 15:25 VPN question patrick kuah
2003-10-14 17:45 ` Chris Brenton
  -- strict thread matches above, loose matches on Subject: below --
2004-10-06 19:35 Sunny Shum
2004-10-06 19:58 ` Jason Opperisano
2004-09-22 13:55 Tony Gogoi
2004-09-22 21:42 ` Tony Gogoi
2004-08-17  8:51 urgrue
2004-08-17 12:55 ` Adam Lang
2004-08-20  1:42 ` Michael H. Warfield
2004-08-15 14:59 SSH allow only form selected IP' luke
2004-08-16 11:23 ` James Turnbull
2004-08-16 13:37   ` Re[2]: " Kev
2004-08-16 16:30     ` VPN question Tony Gogoi
2004-08-16 17:29       ` Adam Lang
2004-08-16 18:50         ` Tony Gogoi
2004-08-16 18:59           ` Adam Lang
2003-10-14 10:19 patrick kuah
2003-10-14 10:44 ` Chris Brenton

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.