Avast
Skip to main content
  • For home For home Products for PC and mobile phone protection
  • For partners For partners Partner with Avast and boost your business
  • About us About us Careers, media, contact
  • Blogs Academy, Blog, Decoded, Forum
  • Malaysia (English)
For home
  • Security
    • Free Antivirus
      Basic protection for all your devices
      Free Antivirus
      Basic protection for all your devices
      Free Antivirus
      Basic protection for all your devices
      Free Antivirus
      Basic protection for all your devices
    • Premium Security
      Complete protection against all internet threats
    • Ultimate
      Our best security, privacy, and performance apps in one package

    Looking for a product for your device? Free Antivirus for PC, Free Security for Android, Free Security for Mac, Free Security for iPhone/iPad

    Looking for a product for your device? Free Antivirus for PC Free Security for Mac Free Security for Android Free Security for iPhone/iPad

  • Privacy
    • SecureLine VPN
      Encrypt your connection to stay safe on public networks
    • AntiTrack
      Disguise your digital fingerprint to avoid personalized ads
    • Secure Browser
      Secure, private, and easy to use web browser
    • Secure Browser PRO
      Unlock the full potential of Avast Secure Browser and fully encrypt your online activity
    • BreachGuard
      Protect your personal info from being exposed and sold
    • Online Security & Privacy
      Privacy and security browser extension from Avast
  • Performance
    • Cleanup Premium
      Boost your computer’s speed and performance
      Cleanup Premium
      Boost your computer’s speed and performance
      Cleanup Premium
      Boost your computer’s speed and performance
      Cleanup Premium
      Boost your computer’s speed and performance
    • Driver Updater
      Automatically update drivers with a single click
  • Store
  • Home
  • Support
  • Store
  • Account
For business
  • Products
    • Small & Home
      Office
      1-10 devices
      Protect up to 10 devices, including laptops, mobile, computers, and tablets with Small Office Protection.
    • Small Businesses
      11+ devices
      Essential, Premium, or Ultimate Business Security managed from integrated, cloud-based Business Hub platform.
    • Specialized products
      • Patch Management
      • Cloud Backup
      • Premium Remote Control
      • Antivirus for Linux
      • CCleaner

    Not sure which solution is right for your business?

    Help me choose
  • Business partners
    • Partnership opportunities
      • MSPs
      • Resellers
      • Distributors
      • Affiliates
    • Solutions for MSPs
      • Business Hub Security Platform
      • Cloud Network Security
      Shop by vertical
      • Education
    Become a partner
    Partner locator
  • Resources
  • Trials
  • Store
  • Home
  • Contact sales
  • Support
  • Store
  • Account
    • Business Hub
    • CloudCare
    • Partner Portal
For partners
  • Smart Life
  • Mobile Security
  • VPN
  • Threat Intelligence
  • Knowledge Center
About us
  • About Avast
  • Careers
  • Privacy
      • Privacy
      • Expert guides
      • Privacy blogs
  • Digital trust
  • Press center
      • Press releases
      • Events
      • In the news
      • Media materials
      • PR contacts
  • Awards
  • Contact us
  • Blogs
  • Avast Blog Read about recent news from the security world
  • Avast Academy Expert tips and guides about digital security and privacy
  • Avast Decoded In-depth technical articles regarding security threats
  • Avast Forum Discuss with the community

List of available regions

Main regions
  • Worldwide (English)
  • Europe (English)
  • América Latina (español)
AMERICAS
  • Argentina
  • Brasil
  • Canada (English)
  • Canada (français)
  • Chile
  • Colombia
  • EE.UU. (español)
  • México
  • USA (English)
  • América Latina (español)
EUROPE, MIDDLE EAST & AFRICA
  • België (Nederlands)
  • Belgique (français)
  • Česká republika
  • Danmark
  • Deutschland
  • España
  • France
  • Italia
  • Magyarország
  • Nederland
  • Norge
  • Polska
  • Portugal
  • Schweiz (Deutsch)
  • Slovensko (česky)
  • South Africa
  • Suisse (français)
  • Suomi
  • Sverige
  • Türkiye
  • United Arab Emirates
  • United Kingdom
  • Ελλάδα
  • ישראל
  • Казахстан
  • România
  • Россия
  • Україна (українська)
  • Украина (русский)
  • المملكة العربية السعودية
  • الدول العربية
  • Europe (English)
ASIA & PACIFIC
  • Australia
  • India
  • इंडिया (हिंदी)
  • Indonesia (English)
  • Indonesia (Bahasa Indonesia)
  • Malaysia (English)
  • Malaysia (Bahasa Melayu)
  • New Zealand
  • Philippines (English)
  • Pilipinas (Filipino)
  • Singapore
  • Việt Nam
  • 日本語
  • 대한민국
  • 简体中文
  • 繁體中文
  • ประเทศไทย
  • Worldwide (English)

Excluding selected servers from Avast SecureLine VPN connection

 

Some websites and servers restrict VPN use. In these cases, you need to use your physical IP address. Rather than disabling your VPN every time you want to access these sites, you can set up a permanent VPN bypass so your physical IP address is used automatically.

To set up a VPN bypass route, first you need to locate your Gateway IP address and the IP address of the website you want to access using the VPN bypass route.

Disconnect SecureLine VPN before following the instructions in this article.

Locate your Gateway IP address

Your Gateway IP address is usually the IP address of your router/DSL-Modem, for example, the device that provides internet to your PC. To set up a VPN bypass route, you need to know the IP address of this device. To find your Gateway IP address:

  1. Click the Windows start icon and type cmd, then select Command Prompt from the search results.
  2. In the Command Prompt window, type route print and press Enter.
  3. In the IPv4 Route Table output you can find your Gateway IP address under Gateway Address. Take note of this number.
  1. From the top menu bar, select Go ▸ Utilities, then open Terminal.
  2. In the Terminal window, type netstat -r and press Enter.
  3. In the output you can find your Gateway IP address under Gateway. Take note of this number.

Locate the IP address of a website

To set up a VPN bypass route, you need to know the IP address of the website that you want to access. To find an IP address:

  1. Click the Windows start icon and type cmd, then select Command Prompt from the search results.
  2. In the Command Prompt window, type ping followed by the URL of the website you want to set up the VPN bypass for. For example, to find the IP address of the website www.mycompany.com you would type ping mycompany.com into the Command Prompt window and press Enter.
  3. In the Command Prompt window you can now see the IP address of the website. Take note of this number.
  1. From the top menu bar, select Go ▸ Utilities, then open Terminal.
  2. Type ping -c 4 followed by the URL of the website you want to set up the VPN bypass for. For example, to find the IP address of the website www.mycompany.com you would type ping -c 4 mycompany.com into the Terminal window and press Enter.
  3. In the Terminal window you can now see the IP address of the website. Take note of this number.

Set up a VPN bypass route

You can access certain VPN restrictive websites or servers by manually setting up a VPN bypass route. You will need to know your Gateway IP address and the IP address of the website you want to bypass.

  1. Click the Windows start icon and type cmd. Select and right-click Command Prompt from the search results, then click Run as administrator.
  2. In the Command Prompt window, type route -p -4 add followed by the IP address of the website and then your Gateway IP address. For example, route -p -4 add 77.234.42.85 192.168.88.2 where 77.234.42.85 is the IP address of the website you want to access and 192.168.88.2 is your Gateway IP address.
    If you want to set up a temporary bypass route, remove -p from the route string.
  3. Press Enter to activate the routing.
  4. The bypass route is set up. You can now connect your VPN again and you should be able to access the previously blocked website.
Before following the instructions below, ensure you are logged in with an administrator account that has a password.
  1. From the top menu bar, select Go ▸ Utilities, then open Terminal.
  2. Type sudo route -nv add followed by the IP address of the website and then your Gateway IP address. For example, sudo route -nv add 77.234.42.85 192.168.132.2 where 77.234.42.85 is the IP address of the website you want to access and 192.168.132.2 is your Gateway IP address.
  3. Press Enter to execute the command.
  4. Terminal prompts you for your password. Type your password and press Enter.
    The cursor in the Terminal window will not move when you type in your password.
  5. The bypass route is set up. You can now connect your VPN again and you should be able to access the previously blocked website.

Troubleshooting

If the steps above do not work or your bypass route stops working, we recommend you contact the administrator of the website or server you are trying to access. It is possible that the website or server has more than one IP address. In this case you will need to repeat the steps above for each IP address.

  • Avast SecureLine VPN
  • Microsoft Windows 11 Home / Pro / Enterprise / Education
  • Microsoft Windows 10 Home / Pro / Enterprise / Education - 32 / 64-bit
  • Microsoft Windows 8.1 / Pro / Enterprise - 32 / 64-bit
  • Microsoft Windows 8 / Pro / Enterprise - 32 / 64-bit
  • Microsoft Windows 7 Home Basic / Home Premium / Professional / Enterprise / Ultimate - Service Pack 1, 32 / 64-bit
     
  • Apple macOS 12.x (Monterey)
  • Apple macOS 11.x (Big Sur)
  • Apple macOS 10.15.x (Catalina)
  • Apple macOS 10.14.x (Mojave)
  • Apple macOS 10.13.x (High Sierra)
  • Apple macOS 10.12.x (Sierra)
  • Apple Mac OS X 10.11.x (El Capitan)
  • Apple Mac OS X 10.10.x (Yosemite)


Updated on: 02/06/2022

Was this article helpful?

Need additional help?

Contact us
Avast logo
Malaysia (English)
For home
  • Support
  • Security
  • Privacy
  • Performance
  • Blog
  • Forum
For partners
  • Mobile Carriers
Company
  • Contact Us
  • Careers
  • Press center
  • Digital trust
  • Technology
  • Research Participation
Avast logo © 2025 Gen Digital Inc. All rights reserved.
Privacy policy Products policy Legal Report vulnerability Contact security Modern Slavery Statement Do not sell my info Subscription details