Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Mar 2000 14:57:48 +0300
From:      "Abylai Ospan aka chemist" <aospan@fds.chem.msu.ru>
To:        <ipfw@FreeBSD.ORG>
Subject:   divert or forward ?
Message-ID:  <006201bf88f5$864977b0$8903040a@fds.chem.msu.ru>

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

[-- Attachment #1 --]
Hi, All !

I have two running web servers on the same machine (ports 80 and 8000 accordingly). Soft: FreeBSD 3.0 + Apache/1.3.9 + ipfw (with divert enabled, rule-based forwarding enabled). 
I want to make the following thing: Somebody (from specific IP) see port 8000 web server,  when he try to connect on port 80.
Can I make it whith divert or forward ? 

I have tryed this lines:
/sbin/ipfw add 1 divert 8000 tcp from 'someIP' to 'myIP' 80 
or
/sbin/ipfw add 1 fwd 'myIP',8000 tcp from 'someIP' to 'myIP' 80


Yours faithfully


[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=koi8-r" http-equiv=Content-Type>
<META content="MSHTML 5.00.2614.3401" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Arial Cyr" size=2>Hi, All !</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>I have&nbsp;two running web servers 
on&nbsp;the same machine (ports 80 and 8000 accordingly). Soft: FreeBSD 3.0 + 
Apache/1.3.9 + ipfw (with divert enabled, rule-based forwarding enabled). 
</FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>I want to make the following thing: Somebody 
(from&nbsp;specific IP)&nbsp;see port 8000 web server,&nbsp; when&nbsp;he try 
to&nbsp;connect&nbsp;on port 80.</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2>Can I make it whith divert or forward ? 
</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="ARIAL CYR" size=2>I have tryed this lines:</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2>/sbin/ipfw add 1 divert 8000 tcp from 
'someIP' to 'myIP' 80 </FONT></DIV>
<DIV><FONT face="Arial Cyr" size=2>or</FONT></DIV>
<DIV><FONT face="ARIAL CYR" size=2>/sbin/ipfw add 1 fwd 'myIP',8000 tcp from 
'someIP' to 'myIP' 80</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2></FONT>&nbsp;</DIV>
<DIV><FONT face="Arial Cyr" size=2>Yours faithfully</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006201bf88f5$864977b0$8903040a>