LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Port frowarding with slackware 10.1 (https://www.linuxquestions.org/questions/linux-newbie-8/port-frowarding-with-slackware-10-1-a-365944/)

Aubrey-calm 09-22-2005 10:56 AM

Port frowarding with slackware 10.1
 
A buddy of mine built me a router out of my slackware box. I don't know where the config file is for it, and cannot get in touch with him about it. Is there a default place where he would have put it, or anyone got any ideas where would be a good place to start looking?

Thanks all.

-Aubrey:study:

david_ross 09-22-2005 01:37 PM

It would usually be /etc/rc.d/rc.firewall. If that isn't it then try:
grep iptables /etc/rc.d/*

Aubrey-calm 09-23-2005 11:45 AM

I added these lines in. He put it in an odd-ball location, I'm assuming for security reasons....

WINDOWS="10.0.1.x"

$IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 5631 -j allowed

$IPTABLES -t nat -A PREROUTING -i $INET_IFACE -p tcp -d $STATIC_IP --dport 5631 -j DNAT --to-destination $WINDOWS:5631

I did the same for port 5632. It is working fine now.


All times are GMT -5. The time now is 08:08 PM.