Now i have installed VPN on our Server(FreeBSD) ,i show you our configure of server:
- one geteway,to internet via lan ,external ip is 10.100.5.6 (our server's ip )
- our subnet address are 10.100.23.0/24(3-floor) 10.100.24.0/24(4-floor) 10.100.25.0/24(5-floor).
- now only requires translate ip address from 10.100.25.0/24 to 10.100.5.6(only this ip allow connect internet) with tool "ipfw/natd" on FBSD , requests from 100.23.0/24 and 10.100.24.0/24 all will be ignore!(translated ip --> connected internet via 10.100.5.6)
- i wrote in file /etc/rc.firewall
ipfw add 400 divert natd all from 10.100.25.0/24 to any via ed0
ipfw add 400 divert natd all from any to 10.100.25.0/24 via ed0
- then run
natd -alias_address 10.100.5.6 -redirect_address 10.100.25.0/24 10.100.5.6
- But all ip address were translated,which sent requests!
Help me resolve this question!How shall i do it ,write rc.firewall?
- If with tool "Ipfilter" ,all were ok ! But can't account flux(liu liang) (6$ = 100MB),we need account how many flux got out from 10.100.5.6.Help me resolve this question!
(Ipfilter and ipfw/natd can't implement together !)
|