Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 1999 18:54:23 +0400
From:      "Oleg Y. Ivanov" <g16@mail.ru>
To:        "river" <river@theriver.nu>
Cc:        <freebsd-security@FreeBSD.ORG>
Subject:   RE: mapping ports from outside to inside (with ipfw ?)
Message-ID:  <001e01bf0053$7d1e8160$0801a8c0@admin.uzdw-centre.ru>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
>I did that....it talks about the -redirec_address command, but it applies as
>mentioned to IP only....so all traffic would be destined for the internal
>machine....not just ONE port, which is what I am looking for 
 
what about -redirect_port ?
 
try this :

 
use_sockets yes
same_ports yes
deny_incoming no
dynamic yes
interface <your_outside_intf_here>
redirect_port <proto>  <internal_host>:<port>  <external_port>
--------------------------------------------------------------------------------
 Sincerely Yours , Oleg Y. Ivanov : sysadmin & DBA of UzDaewoo Centre , Moscow 

PGP fingerprint : EDDD D812 E895 FFF1 BA34 39A4 044E 6E8D 0C0E 64FC 

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=text/html;charset=windows-1251 http-equiv=Content-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><BASE 
href=file://C:\PROGRA~1\COMMON~1\MICROS~1\Stationery\><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"><BASE 
href="file://C:\Program Files\Common Files\Microsoft Shared\Бумага для писем\">
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY bgColor=#d0d0c8>
<DIV><FONT size=2>&gt;I did that....it talks about the -redirec_address command, 
but it applies as<BR>&gt;mentioned to IP only....so all traffic would be 
destined for the internal<BR>&gt;machine....not just ONE port, which is what I 
am looking for </FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>what about -redirect_port ?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>try this :<BR></FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>use_sockets yes<BR>same_ports yes<BR>deny_incoming 
no<BR>dynamic yes<BR>interface &lt;your_outside_intf_here&gt;</FONT></DIV>
<DIV><FONT size=2>redirect_port &lt;proto&gt;&nbsp; 
&lt;internal_host&gt;:&lt;port&gt;&nbsp; &lt;external_port&gt;
<HR>
 </FONT><FONT size=2>Sincerely Yours , <A href="mailto:g16@mail.ru">Oleg Y. 
Ivanov </A>: sysadmin &amp; DBA of UzDaewoo Centre , Moscow <BR><BR>PGP 
fingerprint : EDDD D812 E895 FFF1 BA34 39A4 044E 6E8D 0C0E 64FC 
</FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001e01bf0053$7d1e8160$0801a8c0>