From owner-freebsd-ipfw Wed Mar 8 4:12:44 2000 Delivered-To: freebsd-ipfw@freebsd.org Received: from beta.chem.msu.ru (beta.chem.msu.ru [195.208.208.11]) by hub.freebsd.org (Postfix) with ESMTP id 6A4DA37B78D for ; Wed, 8 Mar 2000 04:12:37 -0800 (PST) (envelope-from aospan@fds.chem.msu.ru) Received: (from uucp@localhost) by beta.chem.msu.ru (8.9.3/8.9.3) with UUCP id PAA04917 for ipfw@FreeBSD.ORG; Wed, 8 Mar 2000 15:12:26 +0300 (MSK) Received: from ws537 (ws537.fds.chem.msu.ru [10.4.3.137]) by fds.chem.msu.ru (8.9.1/8.9.1) with SMTP id OAA26598 for ; Wed, 8 Mar 2000 14:58:07 +0300 (MSK) (envelope-from aospan@fds.chem.msu.ru) Message-ID: <006201bf88f5$864977b0$8903040a@fds.chem.msu.ru> From: "Abylai Ospan aka chemist" To: Subject: divert or forward ? Date: Wed, 8 Mar 2000 14:57:48 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_005F_01BF890E.AB5C8CE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2417.2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_005F_01BF890E.AB5C8CE0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable 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).=20 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 ?=20 I have tryed this lines: /sbin/ipfw add 1 divert 8000 tcp from 'someIP' to 'myIP' 80=20 or /sbin/ipfw add 1 fwd 'myIP',8000 tcp from 'someIP' to 'myIP' 80 Yours faithfully ------=_NextPart_000_005F_01BF890E.AB5C8CE0 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
Hi, All !
 
I have two running web = servers=20 on the same machine (ports 80 and 8000 accordingly). Soft: FreeBSD = 3.0 +=20 Apache/1.3.9 + ipfw (with divert enabled, rule-based forwarding = enabled).=20
I want to make the following = thing: Somebody=20 (from specific IP) see port 8000 web server,  = when he try=20 to connect on port 80.
Can I make it whith divert or = forward ?=20
 
I have tryed this = lines:
/sbin/ipfw add 1 divert 8000 tcp = from=20 'someIP' to 'myIP' 80
or
/sbin/ipfw add 1 fwd 'myIP',8000 = tcp from=20 'someIP' to 'myIP' 80
 
 
Yours faithfully
 
------=_NextPart_000_005F_01BF890E.AB5C8CE0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message