Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9256703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:00:44+00:00 2026-06-18T12:00:44+00:00

I have a gateway computer which connects Internet via ADSL and got a virtual

  • 0

I have a gateway computer which connects Internet via ADSL and got a virtual interface ppp0. The I establish a pptp vpn through the ADSL and got a virtual interface ppp1.

There are several computers connect to this gateway computer in order to share the Internet and vpn connection.

I want to set some route rules or iptables rule to let the specific requests of specified IP ranges from the internal computers forward to the vpn connection(ppp1) and other requests go directly through the ADSL connection(ppp0).

How should I do?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:00:45+00:00Added an answer on June 18, 2026 at 12:00 pm

    Hi you could do that by DNAT in iptable on the PREROUTING chain

    Below example will redirect http traffic from the range of ips specified (“start-ip” to “end-ip”) to the destination ip and port specified(gatewayip:vpnportnumber).

    iptables -A PREROUTING -t nat -m iprange –src-range “start-ip”-“end-ip” -i “interface” -p tcp -m tcp –dport 80 -j DNAT –to-destination “gatewayip:vpnportnumber”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple gateway listener which generates a log at the screen output
need help regarding USSD Gateway. I have to develop an app, which will directly
I have an online gateway which requires an HTML form to be submitted with
We have two machines which need to communicate: a Linux based gateway, and a
I have a flash movie which loads some images dynamically, through hphp gateway files.
I have an sms gateway which pushes me get-requests if a user replys an
I have only HTTP API for my SMS gateway for which I create an
On my gateway, I have a method @Gateway String commsTest(); The idea is that
Hello I am working on wireless sensor network (Zigbee). WSN gateway device have a
I have multiple daemons (one gateway and multiple service, all running on same node)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.