Solved

iptable to forward every bordy to read regulation first

Posted on 2006-10-28
1
193 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now