Score:0

Adding tunnels inside a current libreswan connection

ru flag

I've created an ipsec tunnel with these settings

conn rsubnet
        auto=start
        authby=secret                                                                                                                                                                                            
        pfs=no                                                                                                                                                                                                      
        compress=no                                                                                                                                                                                                    
        aggressive=no                                                                                                                                                                                               
                                                                                                                                                                                                                    
        left=[local nat ip]                                                                                                                                                                                  
        leftid=[local public ip]                                                                                                                                                                                       
                                                                                                                                                                                                                    
        right=[remote ip]                                                                                                                                                                                         
        rightsubnet=10.0.0.0/26                                                                                                                                                                                 

I need to create a separate tunnel from within the above tunnel to some internal IP address range.

conn tunnel0                                                                                                                                                                                                          
        also=rsubnet                                                                                                                                                                                                
        auto=add                                                                                                                                                                                                    
        right=10.0.1.37                                                                                                                                                                                          
        rightnetmask=255.255.255.192                                                                                                                                                                                

using libreswan, how can I setup the second tunnel? How can I set the tunnel source and destination and netmask in 255.255.255.192 style in libreswan.conf?

drookie avatar
za flag
Basically a tunnel inside a tunnel, while technically possible, is a cumbersome setup and bad idea. Avoid it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.