Score:0

Hide IP with softether client in ubuntu - no response from DHCP

ro flag

I have setup Softether VPN server on my OVH VPS with this tutorial. When I'm connecting from my windows machine everything works fine and the internet sees me by my VPN servers IP instead of mine. Now when I do the same in ubuntu, even though softether client shows that it's connected to the server, curl ifconfig.me returns the IP address of my machine instead of VPN. I've found info that on Linux I have to setup routing manually - and here problem arises. When I try to sudo dhclient myadapter, it just hangs there. Sometimes it will freeze forcing me to reboot, and sometimes I can kill it. What I've seen in journalctl is:

can't create /var/lib/dhcp/dhclient.leases: Permission denied
Open a socket for LPF: Operation not permitted

Is there something wrong with my dhclient? Or maybe there is any other way to configure the routing for it? Any suggestions will be appreciated!

Score:0
mu flag

I think you might have this problem described in the ubuntu forum. You might want to try the workaround suggested and try again:

I suggest the following:
touch /var/lib/dhcp3/dhclieht.eth0.leases
chown dhcp /var/lib/dhcp3/dhclieht.eth0.leases
Pepsko avatar
ro flag
For some reason there is no dhcp nor dhcpd user in my system
Alejandro Vázquez avatar
mu flag
can you check the routing table inside the system and paste it here? command: ip route \ also probably you might need to add the default route pinting to the VPN gateway, https://ubuntu.com/core/docs/networkmanager/routing-tables
Pepsko avatar
ro flag
Since I was trying to setup the connection only for my CI/CD and I realised that it can be also achieved with openVPN client instead, so I took this route. I will probably come back to this as I'm curious how to do this, but right now I have too much work to have time to think about this. Thanks anyway
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.