Proxy ARP with SoftEther on an embedded device

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Mr Dini
Posts: 5
Joined: Tue Nov 07, 2017 6:08 pm

Proxy ARP with SoftEther on an embedded device

Post by Mr Dini » Tue Nov 07, 2017 6:20 pm

Hi,

I have an ARMv5 embedded NAS with uClibc. And I decided to compile the latest SE source. It works smoothely, and the built in check says okay for all the system requirements.

However, the box has the old 2.6.31.8 kernel with disabled bridge.ko and NETFILTER support. So I Cannot use bridgeing, nor iptables in order to access my box remotely (I Can access everything, except the VPN server itself) through VPN.

But there is a workaround using Proxy ARP. With openVPN, I Can run this tiny sh file on every new connection establishment:

#!/ffp/bin/sh
default_nic="$(/bin/ip route show | grep -w 'default' | awk 'NR==1 {print $5}')"
/ffp/bin/sudo /ffp/sbin/arp -i "$default_nic" -Ds "$ifconfig_pool_remote_ip" "$default_nic" pub
/ffp/bin/sudo /bin/ip route add "$ifconfig_pool_remote_ip"/32 dev "$dev"

How Can I reach the same result with SEVpn? As I saw, there is no such option to run commands on client connect/disconnect.

Thanks.

Mr Dini
Posts: 5
Joined: Tue Nov 07, 2017 6:08 pm

Re: Proxy ARP with SoftEther on an embedded device

Post by Mr Dini » Sat Nov 11, 2017 10:27 pm

Up.

thisjun
Posts: 2803
Joined: Mon Feb 24, 2014 11:03 am

Re: Proxy ARP with SoftEther on an embedded device

Post by thisjun » Wed Nov 22, 2017 6:45 am

Did you try SecureNAT?

Mr Dini
Posts: 5
Joined: Tue Nov 07, 2017 6:08 pm

Re: Proxy ARP with SoftEther on an embedded device

Post by Mr Dini » Wed Nov 22, 2017 12:16 pm

Yes. And I Can't access my VPN Server. Every other IP works, except the "local machine".

thisjun
Posts: 2803
Joined: Mon Feb 24, 2014 11:03 am

Re: Proxy ARP with SoftEther on an embedded device

Post by thisjun » Thu Nov 30, 2017 7:12 am

Please try to disable kernel-mode SecureNAT and Raw IP mode SecureNAT in 'Virtual HUB
Extended option'.

Mr Dini
Posts: 5
Joined: Tue Nov 07, 2017 6:08 pm

Re: Proxy ARP with SoftEther on an embedded device

Post by Mr Dini » Fri Dec 08, 2017 9:29 pm

Thanks, that worked! However, when I try to access my host machine itself, the CPU usage becomes 99.9%. Is it normal? Therefore the page loadings are slow.

thisjun
Posts: 2803
Joined: Mon Feb 24, 2014 11:03 am

Re: Proxy ARP with SoftEther on an embedded device

Post by thisjun » Wed Dec 20, 2017 5:04 am

I think loop may be made.
Did you use SecureNAT and localbridge at same time?
If so, it can cause a loop.

Mr Dini
Posts: 5
Joined: Tue Nov 07, 2017 6:08 pm

Re: Proxy ARP with SoftEther on an embedded device

Post by Mr Dini » Tue Jan 02, 2018 4:52 pm

Yes. Exactly, that was the problem.

Thanks a lot!

Post Reply