<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vaibhav Kulkarni</title>
    <description>The latest articles on DEV Community by Vaibhav Kulkarni (@vaibhavkul).</description>
    <link>https://dev.to/vaibhavkul</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1420795%2F3791edd0-fbc6-4899-87c7-d1ae1a3a0b2d.png</url>
      <title>DEV Community: Vaibhav Kulkarni</title>
      <link>https://dev.to/vaibhavkul</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vaibhavkul"/>
    <language>en</language>
    <item>
      <title>Using SoftEther VPN client on Linux</title>
      <dc:creator>Vaibhav Kulkarni</dc:creator>
      <pubDate>Fri, 12 Apr 2024 10:20:41 +0000</pubDate>
      <link>https://dev.to/vaibhavkul/using-softether-vpn-on-linux-nhn</link>
      <guid>https://dev.to/vaibhavkul/using-softether-vpn-on-linux-nhn</guid>
      <description>&lt;p&gt;There already are various articles that describe how to connect to a VPN using SoftEther on Linux. Even after following several of them, I wasn't able to connect to a VPN on my Manjaro Linux machine. I had issues especially on the last step where we need to create the routing rules manually. Here's what worked for me.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download SoftEther client from its website, and install the same.&lt;/li&gt;
&lt;li&gt;Start vpnclient using &lt;code&gt;sudo ./vpnclient start&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;code&gt;./vpncmd&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Enter &lt;code&gt;2&lt;/code&gt; for Management of VPN Client&lt;/li&gt;
&lt;li&gt;Enter &lt;code&gt;(blank)&lt;/code&gt; for localhost&lt;/li&gt;
&lt;li&gt;NicCreate (then enter the name, say "VPN")&lt;/li&gt;
&lt;li&gt;AccountCreate (then enter Account_Name, VPN_Server, Hub_Name, Username, Nic_Name)&lt;/li&gt;
&lt;li&gt;AccountPasswordSet. Specify &lt;code&gt;standard&lt;/code&gt; as the type. &lt;em&gt;Many articles suggested &lt;code&gt;radius&lt;/code&gt;, but standard worked for me.&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;AccountConnect&lt;/li&gt;
&lt;li&gt;AccountList should now show status &lt;code&gt;Connected&lt;/code&gt; for Account_Name.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Exit vpncmd and run these commands on a shell.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;/code&gt; Run this as root. (Actually I'm not sure if this is required.)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo dhclient vpn_vpn -v&lt;/code&gt;. Here, we're assuming Nic_Name above is "VPN". In the output, note the Gateway_address. For example, I saw a line &lt;code&gt;DHCPACK of 192.168.30.12 from 192.168.30.1&lt;/code&gt;. Here &lt;code&gt;192.168.30.1&lt;/code&gt; is the Gateway_address.&lt;/li&gt;
&lt;li&gt;You can also find Gateway_address by running &lt;code&gt;ip route&lt;/code&gt;. Here you will see a route rule like &lt;code&gt;default via 192.168.30.1 dev vpn_vpn&lt;/code&gt;. We don't need it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo ip route del default via 192.168.30.1&lt;/code&gt;. Replace &lt;code&gt;192.168.30.1&lt;/code&gt; with your Gateway_address.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;sudo ip route add 192.168.4.0/24 via 192.168.30.1&lt;/code&gt;. Again, replace &lt;code&gt;192.168.30.1&lt;/code&gt; with your Gateway_address, and replace &lt;code&gt;192.168.4.0/24&lt;/code&gt; with the network address range you're trying to connect to. I my case, the remote network was in the range 192.168.4.*, so I used 192.168.4.0/24.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Thank you and wish you the best.&lt;/p&gt;

</description>
      <category>softether</category>
      <category>vpn</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
