LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   port forwarding (https://www.linuxquestions.org/questions/linux-software-2/port-forwarding-155943/)

biscristi 03-10-2004 01:43 PM

port forwarding
 
i need to forward some ports on my fedora core server to another computer on my network. Can you please tell me how can i do this (preferably with a gui software)....

andzerger 03-10-2004 03:01 PM

using my favorite gui: vi(m) (the m is optional)

vi /etc/sysconfig/iptables
(add lines)
-A FORWARD -p ALL --destination-port XX -j ACCEPT

(optional) -A FORWARD -p ALL --destination-port !XX -j DROP (for security, depending on how many services you want to offer on the new host)

vi /var/named/db.mylan.outside (or whatever seems to be that)
hostname <tab> A <tab> host IP
(be sure to use the existing mylan.outside syntax)

vi /etc/sysctl
turn IPv4 forwarding from = 0 to = 1

i know thers a bunch of stuff im missing, but my experience with redhat-config-bind was so confusing that i actually wrote my own named.conf

that reminds me you have to "match-clients { any; }" in the outside portion of named.conf as well..

hopefully someone that knows this stuff like the back of their hand can edit and append my starting point


All times are GMT -5. The time now is 10:04 AM.