Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Firewalls
[Top] [All Lists]

RE: port forwarding

Subject: RE: port forwarding
Date: Wed, 22 Jun 2005 12:34:16 -0700
Have you looked at nocat.net? It does what you are trying except on 443. 

Check out airinter.net for mgmt add on. 

DMZ 

-----Original Message-----
From: "Christophe Vandeplas"<security@vandeplas.com>
Sent: 06/20/05 11:24:28 AM
To: "firewalls@securityfocus.com"<firewalls@securityfocus.com>
Cc: 
Subject: port forwarding


I am working on a kind of authentication system enabling users to
'login' on a network using a webinterface.

This webinterface adds the ip of the user into the firewall (loggedUsers
chain) so that his packets are forwarded across the gateway transparently.


This all works from now on.

But, to make it more userfriendly I would like to automatically redirect
 requests of port 80 (http) and 443 (https) to the authentication system
so that the user can login. This using iptables

I applied these nice rules, and it works like a charm...except that it
_always_ forwards the port, something I do not want.

$IPTABLES -t nat -A PREROUTING -p tcp -i $INTIF -d $UNIVERSE --dport 80
-j DNAT --to $INTIP:80
$IPTABLES -A FORWARD -p tcp -i $INTIF -o $INTIF -d $INTIP --dport 80 -m
state --state NEW -j ACCEPT


Some more info about the forward chain of my firewall:
$IPTABLES -A FORWARD -j loggedUsers        # call the chain loggedUsers
$IPTABLES -A FORWARD -j drop-and-log-it    # drop the other stuff

So my question is: Is there a way to not forward the port for specific
ip's? (or something to get the same results)


Thanks in advance

Christophe




<Prev in Thread] Current Thread [Next in Thread>