Displaying 3 results from an estimated 3 matches for "aws_sgp".
2017 May 26
3
What/why this event happens: Can't write to Linux tun/tap device (tun mode) /dev/net/tun: Input/output error
Hi, All
Due to some routing rotation purpose, I use crontab to add below info:
0 * * * * echo Subnet = 54.169.128.0/17 >> /etc/tinc/myvpn/hosts/aws_sgp
0 * * * * echo Subnet = 54.169.0.0/17 >> /etc/tinc/myvpn/hosts/aws_sgp
1 * * * * /usr/sbin/tincd -n myvpn -k
1 * * * * /usr/sbin/tincd -n myvpn --debug=3
30 * * * * sed -i '/54.169.128.0\/17/d' /etc/tinc/myvpn/hosts/aws_sgp
30 * * * * sed -i '/54.169.0.0\/17/d' /etc/tinc/myvp...
2017 May 26
1
What/why this event happens: Can't write to Linux tun/tap device (tun mode) /dev/net/tun: Input/output error
...avoid to do that, and let the tincd to invoke the tinc-up script?
crontab -e (under root):
0 * * * * /root/add.sh >> /tmp/out.log 2>&1
30 * * * * /root/remove.sh >> /tmp/out.log 2>&1
/root/add.sh:
#!/bin/sh
echo Subnet = 54.169.128.0/17 >> /etc/tinc/myvpn/hosts/aws_sgp
echo Subnet = 54.169.0.0/17 >> /etc/tinc/myvpn/hosts/aws_sgp
/usr/sbin/tincd -n myvpn -k
sleep 1s
/usr/sbin/tincd -n myvpn --debug=3
/sbin/ifconfig myvpn 10.0.0.1 netmask 255.255.255.0
/root/remove.sh:
#!/bin/sh
sed -i '/54.169.128.0\/17/d' /etc/tinc/myvpn/hosts/aws_sgp
sed -i '...
2017 May 26
0
What/why this event happens: Can't write to Linux tun/tap device (tun mode) /dev/net/tun: Input/output error
On Fri, May 26, 2017 at 09:30:44AM +0800, Bright Zhao wrote:
> Due to some routing rotation purpose, I use crontab to add below info:
>
> 0 * * * * echo Subnet = 54.169.128.0/17 >> /etc/tinc/myvpn/hosts/aws_sgp
> 0 * * * * echo Subnet = 54.169.0.0/17 >> /etc/tinc/myvpn/hosts/aws_sgp
> 1 * * * * /usr/sbin/tincd -n myvpn -k
> 1 * * * * /usr/sbin/tincd -n myvpn --debug=3
>
> 30 * * * * sed -i '/54.169.128.0\/17/d' /etc/tinc/myvpn/hosts/aws_sgp
> 30 * * * * sed -i '/54.169...