Skip to contentSkip to conversation

IPSec gateway configuration

LARTC Vlad Adomnicai 2 participants 4 messages Mar 21, 2005

lore
Share & tools
lore
#0 lore raw

Hi,
I'm trying to build an ipsec gateway and somewhere I'm doing something
wrong.

I have a couple of routers that have clients in their back. All the
routers are connected into a switch. In that switch I also have a computer that provides internet access to the clients.
I would like to setup some sort of autentification (don't need
encryption), to allow me to give access to different services to clients. Diferenciating services I can do on the internet gateway, but on the routers I have to be certain that a certain IP is not stolen.
I have set up ipsec so that if a client pings his gateway, it will
work only if he has the same key as defined on the server. However, if he pings the internet gateway, it will work, no matter what I do. I would like the router to validate all packets to the outside LAN. Also I would like to achieve this with the lowest CPU utilization possible although this isn't critical. (about 150 clients behind one router (p2-400/p3-600)).

The documentation that I have found was only how to establish secure
connection between two computers, but what I need is to get outside of it and if possible to not use VPN, because I want the clients that are in the same LAN have maximum trasnfer speeds.

Thx for any suggestions in advance.

Vlad Adomnicai

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw

Hello Vlad,

Why just not to use PPPoE between your gateways and clients? This way you will be sure that only authenticated clients will be given Internet access.

Eugene

Quoted 24 lines · Vlad Adomnicai

Hi,
I'm trying to build an ipsec gateway and somewhere I'm doing something
wrong.

I have a couple of routers that have clients in their back. All the
routers are connected into a switch. In that switch I also have a computer that provides internet access to the clients.
I would like to setup some sort of autentification (don't need
encryption), to allow me to give access to different services to clients. Diferenciating services I can do on the internet gateway, but on the routers I have to be certain that a certain IP is not stolen.
I have set up ipsec so that if a client pings his gateway, it will
work only if he has the same key as defined on the server. However, if he pings the internet gateway, it will work, no matter what I do. I would like the router to validate all packets to the outside LAN. Also I would like to achieve this with the lowest CPU utilization possible although this isn't critical. (about 150 clients behind one router (p2-400/p3-600)).

The documentation that I have found was only how to establish secure
connection between two computers, but what I need is to get outside of it and if possible to not use VPN, because I want the clients that are in the same LAN have maximum trasnfer speeds.

Quoted 8 lines

Thx for any suggestions in advance.

Vlad Adomnicai

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Vlad Adomnicai

Hi,
Indeed, PPPoE is great for this, but unfortunately, in my case I would
prefere something else. For PPPoE all the auth stuff is easy, but if two clients from the same LAN try to copy from each other, they are killing the processor and the network card in the router instead of copying directly from one another via the switches. Another problem with the PPPoE I couldn't solve was strange disconnects of clients. I couldn't trace them to high cpu load or high network traffic. They simply appear to be random and more, when the connection crashes, I get mismatches between the number of pppX interfaces from ifconfig output and the number of interfaces that I see in /proc/net/dev.
With the IPSec I hoped to ease some traffic from the routers and also
decrease the cpu load. Also I hoped I could get rid of the nasty disconnects.

Vlad Adomnicai

Quoted 45 lines · Eugene Butan

Hello Vlad,

Why just not to use PPPoE between your gateways and clients? This way you will be sure that only authenticated clients will be given Internet access.

Eugene

Quoted 24 lines · Vlad Adomnicai

Hi,
I'm trying to build an ipsec gateway and somewhere I'm doing something
wrong.

I have a couple of routers that have clients in their back. All the
routers are connected into a switch. In that switch I also have a computer that provides internet access to the clients.
I would like to setup some sort of autentification (don't need
encryption), to allow me to give access to different services to clients. Diferenciating services I can do on the internet gateway, but on the routers I have to be certain that a certain IP is not stolen.
I have set up ipsec so that if a client pings his gateway, it will
work only if he has the same key as defined on the server. However, if he pings the internet gateway, it will work, no matter what I do. I would like the router to validate all packets to the outside LAN. Also I would like to achieve this with the lowest CPU utilization possible although this isn't critical. (about 150 clients behind one router (p2-400/p3-600)).

The documentation that I have found was only how to establish secure
connection between two computers, but what I need is to get outside of it and if possible to not use VPN, because I want the clients that are in the same LAN have maximum trasnfer speeds.

Quoted 10 lines

Thx for any suggestions in advance.

Vlad Adomnicai

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Quoted 6 lines

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#3 lore raw
In reply to Vlad Adomnicai
Quoted 6 lines · Vlad Adomnicai

Hi,
Indeed, PPPoE is great for this, but unfortunately, in my case I would
prefere something else. For PPPoE all the auth stuff is easy, but if two clients from the same LAN try to copy from each other, they are killing the processor and the network card in the router instead of copying directly from one another via the switches.

You can setup a multi-homed client to address this issue

Quoted 6 lines

Another problem with the
PPPoE I couldn't solve was strange disconnects of clients. I couldn't trace them to high cpu load or high network traffic. They simply appear to be random and more, when the connection crashes, I get mismatches between the number of pppX interfaces from ifconfig output and the number of interfaces that I see in /proc/net/dev.

works for me. Are you using encryption?

Quoted 3 lines

With the IPSec I hoped to ease some traffic from the routers and also
decrease the cpu load. Also I hoped I could get rid of the nasty disconnects.

Just one more thought: you can use so-called HotSpot solution. And since this thread clearly becomes off-topic, you can hit me with e-mail directly.

Quoted 51 lines

Vlad Adomnicai

Quoted 42 lines · Eugene Butan

Hello Vlad,

Why just not to use PPPoE between your gateways and clients? This way you will be sure that only authenticated clients will be given Internet access.

Eugene

Quoted 24 lines · Vlad Adomnicai

Hi,
I'm trying to build an ipsec gateway and somewhere I'm doing something
wrong.

I have a couple of routers that have clients in their back. All the
routers are connected into a switch. In that switch I also have a computer that provides internet access to the clients.
I would like to setup some sort of autentification (don't need
encryption), to allow me to give access to different services to clients. Diferenciating services I can do on the internet gateway, but on the routers I have to be certain that a certain IP is not stolen.
I have set up ipsec so that if a client pings his gateway, it will
work only if he has the same key as defined on the server. However, if he pings the internet gateway, it will work, no matter what I do. I would like the router to validate all packets to the outside LAN. Also I would like to achieve this with the lowest CPU utilization possible although this isn't critical. (about 150 clients behind one router (p2-400/p3-600)).

The documentation that I have found was only how to establish secure
connection between two computers, but what I need is to get outside of it and if possible to not use VPN, because I want the clients that are in the same LAN have maximum trasnfer speeds.

Quoted 8 lines

Thx for any suggestions in advance.

Vlad Adomnicai

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Quoted 4 lines

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

Quoted 4 lines

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc