From: Simone <mimmo@ats.it>
To: netfilter@lists.netfilter.org
Subject: Netfilter box with auto-redirection
Date: Tue, 13 Dec 2005 09:46:03 +0100 [thread overview]
Message-ID: <439E8A4B.6010608@ats.it> (raw)
Hi all...
here is my situation..
eth 1 eth0
| clients | -------> | linux box | -------> | IP backbone |
The client get the ip address via dhcp from the linux box.. i assign a
public ip address.
The box normally act as a router and has to permit the packet to
Internet only if client has the right permit.. else no way.. the packet
is dropped.
Doing this is easy.. i just use the FORWARD chain with 2 rules and all
work ok.. when i need to permit the traffic i only add a rule with the
new IPSRC to the chain before the default drop roule (-I) and all work..
What i need to do is more hard..
I need by default that all the web traffic (80,443), for all the client
that haven't the permit rules on.. has to be redirect to a default
IP-ADDRESS where they will be able to insert their login/pwd for
authentication.. after that is verification will be ok i'll add
automatically the rule for permit the traffic without the redirection..
By default all other kind of traffic must be dropped on eth1..
I have search over the REDIRECT option but i can't use on the FORWARD
chain.. just verify some solution using the mangle table.. but nothing
over there too..
Any idea ? :)
Simon..
reply other threads:[~2005-12-13 8:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=439E8A4B.6010608@ats.it \
--to=mimmo@ats.it \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.