Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

iptable to forward every bordy to read regulation first

Posted on 2006-10-28
1
Medium Priority
?
203 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 2000 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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

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 video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
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…
Suggested Courses
Course of the Month6 days, 13 hours left to enroll

782 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