Commit 0a576052 authored by nanahira's avatar nanahira

Merge branch 'ocserv' into noalias

parents 086edb36 e6215504
explicit-ipv4 = {{conn.remoteLocalAddress}} explicit-ipv4 = {{conn.remoteLocalAddress}}
route = {{conn.localPeerAddress}}/32 route = {{conn.localPeerAddress}}/32
mtu = {{conn.mtu|int - 58}} mtu = {{conn.mtu}}
device = {{conn.name}}
...@@ -307,7 +307,7 @@ class InventoryBuilder { ...@@ -307,7 +307,7 @@ class InventoryBuilder {
restart: 'always', restart: 'always',
image: 'git-registry.mycard.moe/railgun/openconnect', image: 'git-registry.mycard.moe/railgun/openconnect',
network_mode: 'host', network_mode: 'host',
command: ['bash', '-c', `echo "${this.vars.ocservPassword}" | openconnect --user=${remoteName} --passwd-on-stdin --passtos --interface=${name} --mtu=${mtu - 58} ${remoteAddress}:${remoteOcservPort}`], command: ['bash', '-c', `echo "${this.vars.ocservPassword}" | openconnect --user=${remoteName} --passwd-on-stdin --passtos --interface=${name} --mtu=${mtu} ${remoteAddress}:${remoteOcservPort}`],
cap_add: ['NET_ADMIN'], cap_add: ['NET_ADMIN'],
devices: ['/dev/net/tun:/dev/net/tun'], devices: ['/dev/net/tun:/dev/net/tun'],
volumes: [ volumes: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment