Score:0

Skip route table

eg flag

I want to create a VM VBOX Ubuntu to be a gateway in my home lan to route to my enterprise VPN. The problem is that my VPN when is stablished, create a route per route entry with metric 1 to be routed to the VPN. In this way local routing is disabled. If you modify or create a route, the VPN disconnects. I want to know if anybody see any solution, for instance using iptables.

I see in a tcpdump that the problem is with the return packets, the destination responses, but this response is not routed. I have enable ip_forward and tried: iptables -A FORWARD -i tun0 -o eth0 -d 192.168.0.0/24 -j ACCEPT

But this doesnt work, nothing changes.

Regards

Score:0
eg flag

Finally iptables seems not be my solution, thus iptables filters, marks, but not routes.

I think it is necesary to tune ip routing. If there is an expert in routing policies in linux i will appreciate the help. I will try to experiments the ip rule command.

Score:0
eg flag

Finally i get it. Create a custom route table, and an ip rule that traffic to local net goes to my custom route table. The VPN checker doesnt modify my custom route table. For anybody who wants to do the same: https://www.lartc.org/howto/lartc.rpdb.html

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.