LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   IPTABLES allow masq cartain ports (https://www.linuxquestions.org/questions/linux-networking-3/iptables-allow-masq-cartain-ports-498722/)

ok4life 11-04-2006 10:13 PM

IPTABLES allow masq cartain ports
 
me and a few others are trying to allowing only ports 25,110 to go through what we have is forwarding turned on in kernal then nat on output in iptables then stopping nat with this I believe

Code:

$IPTABLES -A FORWARD -i $INTIF -j DROP
$IPTABLES -A FORWARD -o $INTIF -j DROP

so that users must go through authentication first (another software loaded on server) what I am trying to do is allow port 25 to allow sending of e-mail

any ideas are apreciated
I will be man iptables and testing if I find a solution it will be posted

NOTE: I am no IPTABLES god but I believe this should be possible

ok4life 11-04-2006 10:27 PM

well as I test maybe that wasn't what drops it and as I man iptables I believe all that does is drop all forwarding I may need to play with the source of the software to do this??

Any body got any other Ideas?


All times are GMT -5. The time now is 06:37 AM.