Solved

iptable to forward every bordy to read regulation first

Posted on 2006-10-28
1
201 Views
Last Modified: 2010-03-18
I have linux box with 2 nics card , the first nics (192.168.0.1) connect to adsl router , the second nics 192.168.1.1 is dhcp server to share internet How can I write script that every people that connect to second nics  must forward to read regulation of the hotel that is webpage when they click acept  recgulation then they can serve the web
0
Comment
Question by:teera
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 17829647
You have a problem here, on the IP level you cannot force somebody that tries to send mail to read HTML
first as the mail doesn't support that.

What you can do is: BLOCK all traffic from a certain source except http, and redirect ALL
http requests to a special server.
(That can be done through NAT or a REDIRECT target).

if your customer agrees to your conditions you could add that users IP address to a list that is
allowed outside access and remove it from the REDIRECT Rule.

You will need management rules to revert old allowances.
(That can be done if DHCP removes a node from it database/dns etc.)
0

Featured Post

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question