|
Blue Forest http://www.lslnet.com at 20:18 on April 6, 2006
[Urgency Online ]freebsd vpn_ distal link, routing acquiescence no!
This day and a lot of effort made to the freebsd mpd was primary pptp-based VPN server and the Internet into one bureau is no problem, things are not that simple, but who knows after the encounter outside the network into the question : After the success connecting on dropping around 10 seconds, using
Netstat-r
Check routing table, we found that the default routing No, I therefore
XXXX add default route
Gateway to join the order, but when the distal credited, not the default routing, depressed died later use
XXXX route add -net 0.0.0.0/0
Gateway to add it back into default after routing never disappear, then edited /etc/rc.conf documents,
Defaultrouter= "XXXX"
Changed
Defaultrouter= ""
Then add the following elements
Static_routes= "static"
Route_static= "-net 0.0.0.0/0 XXXX"
Think that would eliminate the problem, but when I restart the machine and resume from distant into the future, there is a default routing, weighs, on the
/usr/local/etc/rc.d/
Edit the documents rt.sh
#!/bin/sh
Delete default route
XXXX route add -net 0.0.0.0/0
And
Chmod 775 rt.sh
Restart the system in the distal credited, the default routing continue to disappear, got into in the first, with
XXXX route add -net 0.0.0.0/0
Add into the routing to ensure normal use.
Members boss, which is why Arab hero? ! ! I Guiqiu solution! ! Jia, Online! ! ! ! ! |
[Urgency Online ]freebsd vpn_ distal link, routing acquiescence no!
Your FreeBSD is a static or dynamic IP IP?
If it is a dynamic IP, dial-routing will automatically add acquiescence.
Mpd was primary tried FreeBSD 5.4 + PF + + + ADSL pptp no dial your question. |
[Urgency Online ]freebsd vpn_ distal link, routing acquiescence no!
Static ip address |
| |