Systemd + SoftEther VPN Serverのtapローカルブリッジモードで運用する際にUnitファイルに書いておくべきこと

 まずUnitファイルの中身:

[Unit]
Description=SoftEther VPN Server
After=network.target network-online.target
[Service]
ExecStart=/usr/local/vpnserver/vpnserver start
ExecStartPost=sleep 10s
ExecStartPost=brctl addif sebridge0 tap_sevpn
ExecStop=/usr/local/vpnserver/vpnserver stop
Type=forking
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target



だいじな部分:
ExecStartPost=sleep 10s
ExecStartPost=brctl addif sebridge0 tap_sevpn
SoftEther VPN Serverの起動直後はtapデバイスが出現していないのでスリープを挟まないでbrctl addifが走ってしまうと存在しないtapデバイスを追加しようとして失敗するのでService起動失敗で永遠に起動のやり直しになる。ここでは余裕を見て10秒待機。

Comments

  1. On our payout web page, you will find a shortlist 온라인 카지노 of all the casinos providing the best payouts to players. When you wish to play for real cash, have the ability to|you presumably can} rely on the assistance of our experts search out|to search out} you the best offers and finest casinos. Don't hand over a Euro, pound or dollar until you've established that you simply're on a licensed on line casino website that is independently audited to provide fair video games, and which meets all the business requirements for quality.

    ReplyDelete
  2. Green 코인카지노 Gaming is our award-winning method for guaranteeing safe and sound half in}. With assist of|assistance from|the help of} our ingenious Green Gaming device, players can look at their betting habits and determine whether it is sound or unsafe. The device includes of a simple self-evaluation take a look at that we combine with particular person data on actual game-play to compute a gambling habits profile. This data is then used to make a customized suggestion for a wholesome half in} habits.

    ReplyDelete

Post a Comment

Popular posts from this blog