Solved

iptable to forward every bordy to read regulation first

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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

828 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