Commit eb8bd319 authored by nanahira's avatar nanahira

wp: no alias

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