From owner-freebsd-net Sun Nov 19 17:47:41 2000 Delivered-To: freebsd-net@freebsd.org Received: from fat.ti.ru (fat.ti.ru [212.1.224.35]) by hub.freebsd.org (Postfix) with ESMTP id 1562637B479 for ; Sun, 19 Nov 2000 17:47:38 -0800 (PST) Received: from martin (hilldale.kurgan.ru [212.1.224.61]) by fat.ti.ru (Postfix) with ESMTP id E532FD91A for ; Mon, 20 Nov 2000 04:47:32 +0300 (MSK) Date: Mon, 20 Nov 2000 04:47:33 +0300 From: Martin McFlySr X-Mailer: The Bat! (v1.47 Halloween Edition) Business Reply-To: Martin McFlySr Organization: Back To The Future X-Priority: 3 (Normal) Message-ID: <140210992581.20001120044733@McFlySr.Kurgan.Ru> To: net@FreeBSD.ORG Subject: question about mpd Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello net@FreeBSD.ORG, Are this possible/right way? LAN 172.16.1.0/24. FreeBSD server with two interfaces(172.16.1.1 & 199.199.199.1 [real ip :)]) MPD installed for VPN/PPTP. I want reach situation, when each privateIP get "right" couple - realIP. are this way correct: ipfw: ipfw add allow tcp from 172.16.1.0/24 to 172.16.1.1 1723 ipfw add allow tcp from 172.16.1.1 1723 to 172.16.1.0/24 Pptp0: new -i ng0 Pptp0 Pptp0 set ipcp ranges 172.16.1.1/32 172.16.1.1.3/32 ipfw: ipfw add allow ip from 172.16.1.1 to 172.16.1.3 via ng0 ipfw add allow ip from 172.16.1.3 to 172.16.1.1 via ng0 ipfw add deny ip from 172.16.1.1 to any via ng0 Pptp1: new -i ng1 Pptp1 Pptp1 set ipcp ranges 172.16.1.1/32 172.16.1.1.4/32 ipfw: ipfw add allow ip from 172.16.1.1 to 172.16.1.3 via ng1 ipfw add allow ip from 172.16.1.3 to 172.16.1.1 via ng1 ipfw add deny ip from 172.16.1.1 to any via ng1 mpd.secret: user1 user1password 199.199.199.3 user2 user2password 199.199.199.4 user3 user3password 199.199.199.5 .... etc-etc? thank you, -- Monday, November 20, 2000, 04:39 Best regards from future, Martin McFlySr, HillDale. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message