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 7853931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:51:30+00:00 2026-06-02T19:51:30+00:00

I have a linux DHCP server which I need to redirect all web traffic

  • 0

I have a linux DHCP server which I need to redirect all web traffic to a landing page which will have instructions on how to register their computer on the network.

No matter what URL a user types in, the user needs to be redirected to a webpage (on the DHCP server).

ie: user types google.com they are immediately redirected to 192.168.10.1. This DHCP server will never be used to access the web. Once the user acquires the instructions to register their computer from the landing page, they will be blacklisted on this particular DHCP server and forced to request an IP from the main DHCP server.

How can I create such a redirect?

  • 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-02T19:51:33+00:00Added an answer on June 2, 2026 at 7:51 pm

    You appear to be trying to set up what’s known as a captive portal.

    There are several components to this, one of which is indeed a DHCP server, but that’s hardly the most critical one.

    A short overview

    Your network will have at the very least the following components:

    • DHCP server
    • DNS server
    • Gateway
    • A login system

    Clients will get an IP address from the DHCP server and will be told to use your DNS server and gateway.

    Solution 1: DNS based redirection

    Until users are logged in your DNS server replies with the IP address of the login web server. Take care to set a very low TTL on the DNS replies. You want to make sure the clients browser re-resolves the IP address after the login.

    This will quite likely cause problems for any application other than web browsing on port 80.

    Solution 2: TCP interception

    This is a slightly harder solution, but is likely to work better.
    The DNS server always returns the correct IP address for whatever web site the client is trying to reach.
    The gateway will redirect the TCP sessions on port 80 to the login server.
    All other packets should get an ICMP error reply (network unreachable for example).

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

Sidebar

Related Questions

I have a Linux web server farm with about 5 web servers, web traffic
I have Linux, PHP installed. I want to set the cron job which will
We have a linux app that depends on the speed with which the user
I have Ubuntu Linux. I found one command will let me download unread message
I have a Linux/c client app that connects to a WCF web service over
I have existing Linux shared object file (shared library) which has been stripped. I
I have written a daemon in linux for doing dhcp for an embedded system.
I have been looking into MeeGo, maemo, Android architecture. They all have Linux Kernel,
I see all these tools for web page creation. (Java, PHP , ASP.NET ,
We have an embedded linux product with an application which lets the user change

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.