Re: Captive portalish thing questions

Bart De Schuymer <[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
Op wo, 16-11-2005 te 15:27 -0500, schreef Jason Carr:
> Hello all,
> 
> I've a machine with a bridge.  Ebtables default policy on the broute
> table, BROUTING chain is DROP.  I want to have all requests to port 80
> and any destination go to either my local machine.  I would also like to
> allow outbound connections from inside the bridge to outside of the
> bridge for certain IP addresses.  I've been trying different rules, but
> nothing seems to be working right.  Can somebody point me in the right
> direction?


Give br0 an ip address and use it in your routing table and then do
something like this:

iptables -A PREROUTING -m tcp -p tcp --destination-port 80 -j REDIRECT

cheers,
Bart




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.