# VPN
ip_conntrack_pptp
ip_conntrack_proto_gre
ip_nat_pptp
2016年5月12日 星期四
2016年5月6日 星期五
Linux Dracut 使用摘要
列出系統中 dracult 有那些 module
dracut --list-modules
initramfs 不使用 early microcode
dracut --no-early-microcode
initramfs 增加 driver module
dracult --a "cifs nfs"
initramfs 增加 driver module
dracult --add-drivers "brd cifs arc4 md4 brd nfs nfsv4 nfs_acl ext4 btrfs"
initramfs 增加檔案
dracut --install "/bin/foo /sbin/bar" ...
列出 initramfs 有那些 modules
lsinitrd -m /boot/initramfs-3.10.0-229.el7.x86_64.img
Dracult 版本
/usr/lib/dracult/dracut-version.sh
dracut --list-modules
initramfs 不使用 early microcode
dracut --no-early-microcode
initramfs 增加 driver module
dracult --a "cifs nfs"
initramfs 增加 driver module
dracult --add-drivers "brd cifs arc4 md4 brd nfs nfsv4 nfs_acl ext4 btrfs"
initramfs 增加檔案
dracut --install "/bin/foo /sbin/bar" ...
列出 initramfs 有那些 modules
lsinitrd -m /boot/initramfs-3.10.0-229.el7.x86_64.img
Dracult 版本
/usr/lib/dracult/dracut-version.sh
PPTP Clients Running Behind LEAF
確認載入以下模組
ip_conntrack_pptp
ip_nat_pptp 或 nf_conntrack_pptp
nf_nat_pptp
ip_conntrack_pptp
ip_nat_pptp 或 nf_conntrack_pptp
nf_nat_pptp
2016年5月3日 星期二
檢查 ulogd2 log to MySQL 是否正常執行
#!/bin/sh
# Check Ulogd2 + MySQL
PORT=$(netstat -anp|grep tcp|grep ESTABLISHED|grep :3306|grep ulogd)
PSS=$(ps |grep \[u]logd)
[ "$PSS" = "" ] && /etc/init.d/ulogd start
[ "$PORT" = "" ] && /etc/init.d/ulogd restart
# Check Ulogd2 + MySQL
PORT=$(netstat -anp|grep tcp|grep ESTABLISHED|grep :3306|grep ulogd)
PSS=$(ps |grep \[u]logd)
[ "$PSS" = "" ] && /etc/init.d/ulogd start
[ "$PORT" = "" ] && /etc/init.d/ulogd restart
2016年4月25日 星期一
2016年4月20日 星期三
Tiny Core Linux 使用 ipxe 設定摘要
Tiny Core Linux
download tinycore.iso
mount -o loop tinycore.iso /mnt
cp /mnt/vmlinuz core.gz /var/www/html
ipxe 設定
dhcp
kernel http://192.168.10.1/_tinycore/vmlinuz quiet cde
initrd http://192.168.10.1/_tinycore/core.gz
boot
或
dhcp
kernel http://192.168.10.1/_tinycore4/vmlinuz
initrd http://192.168.10.1/_tinycore4/core.gz
imgargs vmlinuz quiet cde
boot
download tinycore.iso
mount -o loop tinycore.iso /mnt
cp /mnt/vmlinuz core.gz /var/www/html
ipxe 設定
dhcp
kernel http://192.168.10.1/_tinycore/vmlinuz quiet cde
initrd http://192.168.10.1/_tinycore/core.gz
boot
或
dhcp
kernel http://192.168.10.1/_tinycore4/vmlinuz
initrd http://192.168.10.1/_tinycore4/core.gz
imgargs vmlinuz quiet cde
boot
2016年4月19日 星期二
pxelinux 預設載入 ipxe
pxelinux.cfg/default 內容
DEFAULT ipxe.krn dhcp && chain http://192.168.10.1/a.php?mac=${netX/mac}&ip=${netX/ip}&uuid=${uuid}
DEFAULT ipxe
LABEL ipxe
KERNEL ipxe.krn dhcp && chain http://192.168.10.1/a.php?mac=${netX/mac}&ip=${netX/ip}&uuid=${uuid}
DEFAULT ipxe.krn dhcp && chain http://192.168.10.1/a.php?mac=${netX/mac}&ip=${netX/ip}&uuid=${uuid}
DEFAULT ipxe
LABEL ipxe
KERNEL ipxe.krn dhcp && chain http://192.168.10.1/a.php?mac=${netX/mac}&ip=${netX/ip}&uuid=${uuid}
訂閱:
文章 (Atom)