Static IP on tap device

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Static IP on tap device

Post by kh_tsang » Mon May 04, 2015 2:07 pm

How to assign static IP on tap device automatically when each restart of the softether vpn service?

Currently, I need to execute ip command manually after each restart of the softether vpn server service.

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

Re: Static IP on tap device

Post by thisjun » Thu May 14, 2015 7:54 am

Do your OS have any tool like ifupdown?

kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Re: Static IP on tap device

Post by kh_tsang » Thu May 14, 2015 4:30 pm

I think so but not sure. It is a ubuntu image coming from amazon aws.

kh_tsang
Posts: 551
Joined: Wed Jul 24, 2013 12:09 pm

Re: Static IP on tap device

Post by kh_tsang » Sun May 17, 2015 4:46 pm

Currently, in my startup script, the ip command is executed 4 seconds after the vpn server is started.

In the manual, bridge mode is suggested instead of using NAT. However, due to technical limitations, NAT is needed, is it a better idea to do NAT with tap device and iptables then using SecureNAT? I still use the SecureNAT function for DHCP and DNS forwarding.

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

Re: Static IP on tap device

Post by thisjun » Thu May 28, 2015 6:55 am

It depend on environment and your intent.

hatimux
Posts: 20
Joined: Fri May 15, 2015 10:20 am

Re: Static IP on tap device

Post by hatimux » Wed Jun 03, 2015 11:10 am

You can simply configure your tap interface to use dhcp.
Since you are using uybuntu, modify the network config file /etc/network/interfaces:
!!!!
auto tap
iface tap inet dhcp
!!!!

Post Reply