Re: [ILUG] Ip forwarding and iptables

From: Simon Dickson (simon at domain dicksonent.com)
Date: Thu 27 Jun 2002 - 07:38:35 IST


this is how I forward port 81 to port 80 on another machine

iptables -t nat -A PREROUTING -p tcp --dport 81 -j DNAT --to 192.168.0.15:80

Have fun.

Simon

On Thu, 27 Jun 2002 08:46, cout at domain eircom.net wrote:

<very snip>

> Righteo I need to figure out how to forward port 25 to 10.0.0.2 from eth1
> call eth1's ip 192.168.0.1 for argument's sake and eth0's 10.0.0.33.
>
> Can someone please tell me how the the hell I do this?
> Brian

-- 
Dickson Computer Services
phone/fax (07) 55949328
mobile    0412 268 975
e-mail     simon at domain dicksonent.com
public key http://simon.dicksonent.com/signature.html


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:34 GMT