Hello,
I'm trying FreeBSD 9.2-RELEASE and faced with one trouble. I'm using the MPD5.7 client to connect to the internet provider. After connecting the script is run that deletes the route to the VPN server and adds the new route via the local gateway.
This is script
For example, I deleted the script and tried to delete the route manually.
I.e. from
Delete
The same operation in FreeBSD 9.1-RELEASE runs successfully.
Also, this trouble is repeated on the two clean (9.1 and 9.2) virtual machines. Kernels - GENERIC without changes.
I'm trying FreeBSD 9.2-RELEASE and faced with one trouble. I'm using the MPD5.7 client to connect to the internet provider. After connecting the script is run that deletes the route to the VPN server and adds the new route via the local gateway.
This is script
Code:
#!/bin/sh
route delete $8
route add $8 10.165.32.1
route delete default
route add default $4
route delete $8
does not workFor example, I deleted the script and tried to delete the route manually.
I.e. from
Code:
root@Eviko:/home/mrstalker # netstat -nrf inet
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 10.165.32.1 UGS 0 27 re0
2.93.209.127 link#7 UHS 0 0 lo0
10.0.0.0/8 10.165.32.1 UGS 0 14 re0
10.165.32.0/21 link#3 U 0 12836759 re0
10.165.38.3 link#3 UHS 0 0 lo0
85.21.230.206 link#7 UH 0 0 ng0
127.0.0.1 link#6 UH 0 57 lo0
Delete
Code:
root@Eviko:/home/mrstalker # route delete 85.21.230.206
route: writing to routing socket: Address already in use
delete host 85.21.230.206 fib 0: gateway uses the same route
The same operation in FreeBSD 9.1-RELEASE runs successfully.
Code:
root@Test:/home/mrstalker # route delete 85.21.230.206
delete host 85.21.230.206
Also, this trouble is repeated on the two clean (9.1 and 9.2) virtual machines. Kernels - GENERIC without changes.