Hi,i am trying to do a port forward from my linux server right now. Basically,my goal is to forward port 6666 from my server to another computer listening at port 5800. Basically i think that im trying to do nat and routing.
ftp:/ftp/ROMS# iptables -A FORWARD -p tcp -i eth0 -d 10.10.10.4:5800 --dport 5800 -j ACCEPT
iptables v1.2.11: host/network `10.10.10.4:5800' not found
Try `iptables -h' or 'iptables --help' for more information.
ftp:/ftp/ROMS#
You wouldn't see anything happen when you run the echo command providing it works successfully. It's just outputing data into a file. the ip_forward file needs a boolean entry in order for your system to perform any NAT translations
I have to admit... I'm pretty lost when it comes to iptables stuff though
so basically,what do i need to do in order to make this thing work? Would i hav to post the contents of that file?
i think it might help to tell how mmy network is setup. My linux box is connected to a hub along with my other computers. The linux box only has 1 network card. I have also DMZed the Linux box so that i can access the services and have secured the box using FIREHol
Last edited by a94060 on Sat Apr 29, 2006 7:01 am, edited 1 time in total.
ftp:/ftp/ROMS# iptables -A FORWARD -p tcp -i eth0 -d 10.10.10.4:5800 --dport 5800 -j ACCEPT
iptables v1.2.11: host/network `10.10.10.4:5800' not found
Try `iptables -h' or 'iptables --help' for more information.
ftp:/ftp/ROMS#
Try "-d 10.10.10.4 --dport 5800" instead.
Btw, it's not enough that there's a comp at 10.10.10.4, you also have to make sure you actually connect to it
ftp:/ftp/ROMS# iptables -A FORWARD -p tcp -i eth0 -d 10.10.10.4:5800 --dport 5800 -j ACCEPT
iptables v1.2.11: host/network `10.10.10.4:5800' not found
Try `iptables -h' or 'iptables --help' for more information.
ftp:/ftp/ROMS#
Try "-d 10.10.10.4 --dport 5800" instead.
Btw, it's not enough that there's a comp at 10.10.10.4, you also have to make sure you actually connect to it
apparently, timv's srategy worked and the command went thru without a problem. But,what i was trying to do did not work. Basically,i have a computer sitting at 10.10.10.4 with Real VNC viewer running. I have the connections being accepted on 5900 and the java viewer running on 5800. So,i think it was my fault for not clearing up what is happening. I would like to redirect all connections to the java viewer(5800) to port 6666 outside and i would like to leave the connections to still be accepted on port 5900.