After configuring VPN in ubuntu, configure the route to the VPN

Source: Internet
Author: User

Run the route command to view all the routes.

Route

The result is roughly as follows:

Kernel IP route table destination gateway subnet mask mark hop reference using interface default 192.168.8.1 0.0.0.0 UG 0 0 255.192.168.8.1 255.255.255.255 UGH 0 0 0 wlan0110.185.76.107 192.168.8.1 255.255.255.255 UGH 0 0 wlan0link-local * 255.255.255.0.0 U 1000 0 0 0 wlan0192.168.0.40 * 255.255.255.255 UH 0 0 0 ppp0192.168.8.0 * 255.255.255.0 U 2 0 0 wlan0

Configure all traffic to go through the vpn

Ip route replace default dev ppp0


This article from "not afraid of wrong, afraid not to break" blog, please be sure to keep this source http://jacksongblack.blog.51cto.com/6378693/1302855

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.