Networking Forums

Networking Forums > Computer Networking > Linux Networking > With Linux almost anything goes, but can this be done (FreeSwan VPN using RED IF with IP of ORANGE IF)?

Reply
Thread Tools Display Modes

With Linux almost anything goes, but can this be done (FreeSwan VPN using RED IF with IP of ORANGE IF)?

 
 
John Smith
Guest
Posts: n/a

 
      09-09-2004, 01:04 PM
I am trying to replace a router and VPN box with a linux box having 3
intefaces: Red, Green, and Orange. Since I no longer will have the router,
the Linux/FreeSwan box will have to:

A. Have the Red interface connected to the public network similar to that of
the old router.

B. Perform the VPN operation of the old VPN box, but without making changes
to the "other" side of the VPN link.

This is a challenge, since the Linux/FreeSwan box will need to go out on the
Red interface with IPSEC packets formatted for the Orange interface. That
is, I want the IPSEC packets to be formatted as if they were sent out on the
Orange interface. (This to make the other side of the VPN link happy with
whom it communicates with). Second, these packets need to get an IP header,
and leave on the Red interface. I am uncertain if it is sufficient that the
VPN packet has the right look, or if also the IP header must match. That
is, the IP address of the VPN packets leaving on the Red interface must also
have the source address of the Orange interface.

I have experimented with this and found that I am having trouble having left
set to anything other than the Ip address of the interfaces in ipsec.conf.
Also, IPSEC is not happy when leftnexthop is not on the same net as left...
I have been trying to add a second Ip address to the Orange interface to
resolve the leftnexthop issue, but still no luck.

So, the bottom line is; Can I configure FreeSwan in any way such that it
uses the IP address of the Orange interface for its VPN traffic over the Red
interface?

Any suggestions would be helpful and appreciated.

AJ





 
Reply With Quote
 
 
 
 
Wannebee NetHacker
Guest
Posts: n/a

 
      09-16-2004, 05:03 PM
With this iproute2 command it might work

ip r a IpSecOtherIp/32 dev RED src IpOrange via GwRed

IpSecOtherIp : the ip of the other end of the Ipsec
ipOrange : the Ip of the orange interface
GwRed : the gateway used on the red interface


you can also try to change the nextHop in your config to the
GwRedIp (I'm not that familiar with IpSec to know if it respects
the normal routing)

Good luck and let me kown if it works, or otherwhise what happens
with the packets you see.


"John Smith" <(E-Mail Removed)> wrote in message news:<chpkc4$7c4$(E-Mail Removed)>...
> I am trying to replace a router and VPN box with a linux box having 3
> intefaces: Red, Green, and Orange. Since I no longer will have the router,
> the Linux/FreeSwan box will have to:
>
> A. Have the Red interface connected to the public network similar to that of
> the old router.
>
> B. Perform the VPN operation of the old VPN box, but without making changes
> to the "other" side of the VPN link.
>
> This is a challenge, since the Linux/FreeSwan box will need to go out on the
> Red interface with IPSEC packets formatted for the Orange interface. That
> is, I want the IPSEC packets to be formatted as if they were sent out on the
> Orange interface. (This to make the other side of the VPN link happy with
> whom it communicates with). Second, these packets need to get an IP header,
> and leave on the Red interface. I am uncertain if it is sufficient that the
> VPN packet has the right look, or if also the IP header must match. That
> is, the IP address of the VPN packets leaving on the Red interface must also
> have the source address of the Orange interface.
>
> I have experimented with this and found that I am having trouble having left
> set to anything other than the Ip address of the interfaces in ipsec.conf.
> Also, IPSEC is not happy when leftnexthop is not on the same net as left...
> I have been trying to add a second Ip address to the Orange interface to
> resolve the leftnexthop issue, but still no luck.
>
> So, the bottom line is; Can I configure FreeSwan in any way such that it
> uses the IP address of the Orange interface for its VPN traffic over the Red
> interface?
>
> Any suggestions would be helpful and appreciated.
>
> AJ

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Orange broadband unlimited with free calls to Orange ¬Stephen Hammond Broadband 0 10-26-2006 11:12 AM
Problem with Linux - Freeswan Lior M Linux Networking 0 07-26-2004 07:11 PM
IPSec (i.e. Freeswan 2.x), Linux kernel 2.6 no longer masquerading (NAT'ing) connections John T. Ellis Linux Networking 1 05-25-2004 06:56 AM
freeswan problem between w2k and linux Alexander Joelly Linux Networking 3 01-22-2004 09:36 PM
Help with old freeswan and old linux on old hardware. Josiah Fizer Linux Networking 0 12-15-2003 08:48 PM



1 2 3 4 5 6 7 8 9 10 11