LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Pls help me about OPENSWAN (https://www.linuxquestions.org/questions/linux-networking-3/pls-help-me-about-openswan-692853/)

ThanhDuongCong 12-24-2008 11:05 PM

Pls help me about OPENSWAN
 
Hi everybody ,
my local subnet was configured :

leftsubnet=192.168.100.0/24

I'm using CENTOS ver 5.1 and installed OPENSWAN to make vpn site to site with another networks .It's working OK but now I want to allow one more local subnet to access thru the VPN
for example : I want it to be :leftsubnet=192.168.100.0/24-192.168.10.0/24
So pls help me to configure that
Many Thanks

rweaver 12-26-2008 10:42 AM

Quote:

Originally Posted by ThanhDuongCong (Post 3386635)
Hi everybody ,
my local subnet was configured :

leftsubnet=192.168.100.0/24

I'm using CENTOS ver 5.1 and installed OPENSWAN to make vpn site to site with another networks .It's working OK but now I want to allow one more local subnet to access thru the VPN
for example : I want it to be :leftsubnet=192.168.100.0/24-192.168.10.0/24
So pls help me to configure that
Many Thanks

The last time I checked openswan doesn't support multiple subnet definitions inside a tunnel.

The way I've typically seen it done in the past is...
Code:

conn addl-subnet-1
  leftsubnet=192.168.10.0/24
  also=mytunnel
conn addl-subnet-2
  leftsubnet=192.168.11.0/24
  also=mytunnel
conn mytunnel
  [[your full tunnel definition here]]

It's not pretty but it does work.


All times are GMT -5. The time now is 03:57 AM.