Firewall

David Richards DavidR at eurosoft-uk.com
Tue Feb 27 14:24:34 GMT 2001


Ok now that i have natd working. how would i get it to direct packets from
the internet on port 3389 to a local machine to port 3389 ?



-----Original Message-----
From: Richard Smith [mailto:rsmith at trltech.co.uk]
Sent: 26 February 2001 11:44
To: David Richards
Cc: 'freebsd-users at uk.freebsd.org'
Subject: Re: Firewall


David Richards wrote:
> 
> Hi
> 
>    I am trying to create a rule that will send packets coming from the
> internet, to an internal machine with the ip address of 192.168.1.3
> 
> the rules that i have writen is
> ${fwcmd} add fwd tcp from any to 192.168.1.3 3389
> ${fwcmd} add fwd udp from any to 192.168.1.3 3389

Syntax error after `fwd'. According to man ipfw(8), the `fwd' action
should be followed by: ipaddr[,port].

IMHO, what your trying to do wont work anyway. Your trying to forward to
an RFC1918 address, you'ld have better luck doing the forwarding using
natd instead.

Richard.

________________________________________________________________________
This message has been checked for all known viruses, by Star Internet, 
delivered through the MessageLabs Virus Control Centre. 
For further information visit:
http://www.star.net.uk/stats.asp




More information about the Ukfreebsd mailing list