1. 安裝
cd /usr/ports/www/dokuwiki
make install clean
2.httpd.conf加入
Alias /dokuwiki /usr/local/www/dokuwiki
﹤Directory "/usr/local/www/dokuwiki"﹥
Options FollowSymLinks
AllowOverride ALL
Require all granted
﹤/Directory﹥
3. 變更資料夾權限
chown -R www /usr/local/www/dokuwiki
4.開啟設定網頁
http://ip/dokuwiki/install.php
5.設定完成後
rm /usr/local/www/dokuwiki/install.php
chown -R root /usr/local/www/dokuwiki/conf
2015年4月15日 星期三
2015年4月8日 星期三
2015年3月18日 星期三
在 FreeBSD 10.1 上建置 vpn server
/usr/ports/net/mpd5
make install clean
edit /usr/local/etc/mpd5/mpd.conf
startup:
default:
load pptp_server
pptp_server:
set ippool add LANPOOL 10.10.1.10 10.10.1.50
create bundle template VPN
set iface disable on-demand
set iface idle 0
set iface enable proxy-arp
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 10.10.1.1/32 ippool LANPOOL
set bundle enable compression
set ccp yes mppc
set mppc no e40
set mppc yes e128
set mppc yes stateless
create link template VPNLINK pptp
set link action bundle VPN
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 30 300
set link mtu 1460
set link enable incoming
edit /usr/local/etc/mpd5/mpd.secret
abcd 123456 //account password
edit /etc/rc.conf
gateway_enable="YES"
pf_enable="YES"
pf_rules="/etc/pf.conf"
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
mpd_flags="-b"
mpd_enable="YES"
edit /etc/pf.conf
ext_if ="hn0"
table persist {10.10.1.0/24}
nat on $ext_if from to any -> ($ext_if)
pass in all
pass out all
#pass in quick inet from to any keep state
make install clean
edit /usr/local/etc/mpd5/mpd.conf
startup:
default:
load pptp_server
pptp_server:
set ippool add LANPOOL 10.10.1.10 10.10.1.50
create bundle template VPN
set iface disable on-demand
set iface idle 0
set iface enable proxy-arp
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 10.10.1.1/32 ippool LANPOOL
set bundle enable compression
set ccp yes mppc
set mppc no e40
set mppc yes e128
set mppc yes stateless
create link template VPNLINK pptp
set link action bundle VPN
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 30 300
set link mtu 1460
set link enable incoming
edit /usr/local/etc/mpd5/mpd.secret
abcd 123456 //account password
edit /etc/rc.conf
gateway_enable="YES"
pf_enable="YES"
pf_rules="/etc/pf.conf"
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
mpd_flags="-b"
mpd_enable="YES"
edit /etc/pf.conf
ext_if ="hn0"
table
nat on $ext_if from
pass in all
pass out all
#pass in quick inet from
重新啟動之後,使用abcd及密碼123456撥接登入vpn server
2014年12月15日 星期一
freebsd with bandwidthd
1. cd /usr/ports/www/apache24
make BATCH=yes install clean
2.cd /usr/ports/net-mgmt/bandwidthd
make BATCH=yes install clean
3.ee /usr/local/etc/apache24/httpd.conf
LISTEN 8008
DocumentRoot "/usr/local/bandwidthd/htdocs"
subnet 172.16.0.0/18
dev "bge1"
5.ee /etc/rc.conf
apache24_enable="YES"
6./usr/local/etc/rc.d/apache24 start
/usr/local/etc/rc.d/bandwidthd start
make BATCH=yes install clean
2.cd /usr/ports/net-mgmt/bandwidthd
make BATCH=yes install clean
3.ee /usr/local/etc/apache24/httpd.conf
LISTEN 8008
DocumentRoot "/usr/local/bandwidthd/htdocs"
4.mv /usr/local/etc/rc.d/bandwidthd.sh.sample /usr/local/etc/rc.d/bandwidthd
ee /usr/local/bandwidthd/etc/bandwidthd.confsubnet 172.16.0.0/18
dev "bge1"
5.ee /etc/rc.conf
apache24_enable="YES"
6./usr/local/etc/rc.d/apache24 start
/usr/local/etc/rc.d/bandwidthd start
pkg 使用
更新安裝程式
pkg upgrade
搜尋可安裝程式
pkg search bandwidthd
安裝程式
pkg install bandwidthd
刪除已安裝程式
pkg delete bandwidthd
or
pkg remove bandwidthd
刪除無用相依程式
pkg autoremove
查看安裝程式版本
pkg version
pkg upgrade
搜尋可安裝程式
pkg search bandwidthd
安裝程式
pkg install bandwidthd
刪除已安裝程式
pkg delete bandwidthd
or
pkg remove bandwidthd
刪除無用相依程式
pkg autoremove
查看安裝程式版本
pkg version
訂閱:
文章 (Atom)

