Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Nov 2000 04:47:33 +0300
From:      Martin McFlySr <Martin@McFlySr.Kurgan.Ru>
To:        net@FreeBSD.ORG
Subject:   question about mpd
Message-ID:  <140210992581.20001120044733@McFlySr.Kurgan.Ru>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?140210992581.20001120044733>