Commit eb8bd319 authored by nanahira's avatar nanahira

wp: no alias

parent dbb89c3b
......@@ -68,7 +68,11 @@ protocol ospf v2 {
# };
{% for connection in connections %}
{% if connection.protocol != "null" and connection.remoteLocalAddress != address %}
{% if connection.protocol == "oc" and connection.ocType == "server" %}
interface "{{connection.name}}*" {
{% else %}
interface "{{connection.name}}" {
{% endif %}
type ptmp;
{% if connection.outbound %}
cost {{connection.metric}};
......
explicit-ipv4 = {{conn.remoteLocalAddress}}
route = {{conn.localPeerAddress}}/32
mtu = {{conn.mtu|int - 58}}
device = {{conn.name}}
#!/bin/bash
export dev="$USERNAME"
export dev="$DEVICE"
source /etc/ocserv/env-per-user/$USERNAME
NEW_DEVICE="$USERNAME"
ip link set $DEVICE down
ip link set $DEVICE name $NEW_DEVICE
ip link set $NEW_DEVICE up
ip link property add altname $DEVICE dev $NEW_DEVICE
#NEW_DEVICE="$USERNAME"
#ip link set $DEVICE down
#ip link set $DEVICE name $NEW_DEVICE
#ip link set $NEW_DEVICE up
#ip link property add altname $DEVICE dev $NEW_DEVICE
{{ansible_user_dir}}/nextgen-network/scripts/postup.sh
......
......@@ -31,5 +31,5 @@ _strip_wg_conf ./protocols/wgfrp/wgfrp.conf.j2 ./protocols/wgfrp/wgfrp-setconf.c
ansible-playbook -i ../result/inventory.yaml "$@" configure.yaml
cd ..
rsync -4cavzP ./data/ nanahira@koishi.yuzurisa.com:~/nginx/railgun-data
ssh -T nanahira@koishi.yuzurisa.com 'cd ~/nginx ; docker-compose restart railgun-enterprise'
#rsync -4cavzP ./data/ nanahira@koishi.yuzurisa.com:~/nginx/railgun-data
#ssh -T nanahira@koishi.yuzurisa.com 'cd ~/nginx ; docker-compose restart railgun-enterprise'
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