On Sun, 2001-11-25 at 16:49, Greg Fischer wrote: > I've spent an embarrasingly long period of time trying to get this to > work. I'm trying to port forward port 6699 from 192.168.0.1 (my firewall > machine) to 192.168.0.112:6699 in order to allow others to access my > mp3s via napster. Here is the relivant line, anyone know what I'm doing > wrong? > > /sbin/iptables -t nat -A PREROUTING -d 192.168.0.1 -p tcp --dport 6699 > -i eth0 -j DNAT --to-destination 192.168.0.12:6699
Looks like you have the wrong IP address in the iptables command. Is is 112 or 12? Also note that your other machines behind the firewall will be unable to connect to the MP3 server through the firewall. They should either contact the MP3 server directly, or you can add some SNAT lines to make everything work properly. -jwb
pgpe2lMAk03H9.pgp
Description: PGP signature