From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrey mirtchovski To: 9fans@cse.psu.edu Subject: Re: [9fans] NAT'ing a drawterm connection In-Reply-To: <87oeyepers.fsf@rgristroph-austin.ath.cx> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Sun, 24 Aug 2003 22:04:28 -0600 Topicbox-Message-UUID: 204ddf88-eacc-11e9-9e20-41e7f4b1d025 your bug is that you need to change the --dport appropriately for each different port: 1018 iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 564 -j DNAT --to-destination 192.168.1.3 1019 iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 17008 -j DNAT --to-destination 192.168.1.3 1020 iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 17010 -j DNAT --to-destination 192.168.1.3 1021 iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 17013 -j DNAT --to-destination 192.168.1.3 i believe only 564 i 17008 are important, but i can't connect right now to give you netstat... andrey On 24 Aug 2003, Rob Ristroph wrote: > # Port forwarding to try to make drawterm to Plan 9 machine work > /sbin/iptables -t nat -A PREROUTING -p tcp --dport 567 -i eth0 -j DNAT --to 192.168.1.18:567 > /sbin/iptables -t nat -A PREROUTING -p tcp --dport 567 -i eth0 -j DNAT --to 192.168.1.18:17007 > /sbin/iptables -t nat -A PREROUTING -p tcp --dport 567 -i eth0 -j DNAT --to 192.168.1.18:17008 >