Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxÅäÖÃiptablesºÍsquid

iptables-save > ipt.v1.0
iptables-save > ipt.v1.1
iptables-restore < ipt.v1.0
cp /etc/sysconfig/iptables iptables.raw
service iptables save
ipαװµÄ½Å±¾Îļþiptables_masquerade
#!/bin/bash
//ÉèÖÃlinuxϵͳÔÊÐíip°üµÄת·¢
echo "1" > /proc/sys/net/ipv4/ip_forward
//¼ÓÔØʵÏÖNET¹¦ÄÜËùÐèµÄÄÚºËÄ£¿é
modprobe ip_tables
modprobe ip_nat_ftp
modprobe ip_nat_irc
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_conntrack_irc
//³õʼ»¯filter±íºÍnat±í
iptables -F
iptables -X
iptables -Z
iptables -F -t nat
iptables -X -t nat
iptables -Z -t nat
//ÉèÖùæÔòÁ´µÄĬÈϲßÂÔ
iptables -P INPUT  DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD  ACCEPT
iptables -t nat -P PREROUTING  ACCEPT
iptables -t nat -P POSTROUTING    ACCEPT
iptables -t nat -P OUTPUT ACCEPT
//ÉèÖÃÖ÷»ú·À»ðǽ²ßÂÔ
iptables -A INPUT -i eth0 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 23 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 3128 -j ACCEPT
//ÔÚnat±íµÄPOSTROUTING¹æÔòÁ´ÖÐÌí¼ÓIPαװµÄ¹æÔò
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o ppp0 -j MASQUERADE
chmod u+x iptables_masquerade
ls -l iptables_masquerade
./iptables_masquerade
iptables -t nat -L
http://www.ipaddressworld.com/

ÅäÖôúÀísquid
grep 'hostname' /etc/hosts
ls /var/spool/squid/
squid -z
ls /var/spool/squid/
service squid start
netstat -ntpl | grep squid
cd /etc/squid/
·þÎñ¶Ë¿Ú
http_port 3128
//¸ÄΪ
http_port 8080
//»ò
http_port 3128 8080
»º³åÄÚ´æÊýÁ¿
cache_mem 8MB
//¸ü¸ÄΪ
cache_mem 64MB
grep ^http_access squid.conf
grep ^acl squid.conf
\?
//ÔÚsquid.confÅäÖÃÎļþÖÐÐèÒªÌí¼ÓÈçϵķÃÎÊ¿ØÖÆÁбí
acl clients src 192.168.1.0/24
//ÔÚsquid.confÎļþµÄhttp_access deny allÉèÖÃÐÐ֮ǰÌí¼ÓÈçÏÂÉèÖãº
http_access allow clients
# http_access deny all
ÅäÖÃ͸Ã÷´úÀí·þÎñÆ÷
1ÅäÖÃsquid.confÎļþ
vi /etc/squid/squid.conf
//ÔÚÅäÖÃÎļþÖÐÌí¼ÓÒÔϵÄÅ


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨Èý£© HCI²ã±à³Ì

1. HCI²ãЭÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI)  ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈЭÒé ......

LinuxϵÄÓ²¼þÇý¶¯——USBÉ豸£¨×ª£©

from£ºhttp://www.ibm.com/developerworks/cn/linux/l-usb/index1.html
¼¶±ð£º ³õ¼¶
ÕÔÃ÷ (carl__zhao@163.com), ÁªÏëÈí¼þÉè¼ÆÖÐÐÄǶÈëʽÑз¢´¦ÏµÍ³Éè¼Æ¹¤³Ìʦ
2003 Äê 7 ÔÂ 01 ÈÕ
USBÉ豸ԽÀ´Ô½¶à£¬¶øLinuxÔÚÓ²¼þÅäÖÃÉÏÈÔȻûÓÐ×öµ½ÍêÈ«¼´²å¼´Ó㬶ÔÓÚLinuxÔõÑùÅäÖúÍʹÓÃËûÃÇ£¬Ò²Ô½À´Ô½³ÉΪÀ§ÈÅÎÒÃǵÄÒ»´óÎÊÌâ¡£±¾ÎÄ× ......

LinuxÏÂMySQL¶¨ÆÚ×Ô¶¯±¸·ÝÊý¾Ý¿â

MySQL :: Linux ÏÂ×Ô¶¯±¸·ÝÊý¾Ý¿âµÄ shell ½Å±¾
Linux ·þÎñÆ÷ÉϵijÌÐòÿÌ춼ÔÚ¸üРMySQL Êý¾Ý¿â£¬ÓÚÊǾÍÏëÆðдһ¸ö shell ½Å±¾£¬½áºÏ crontab£¬¶¨Ê±±¸·ÝÊý¾Ý¿â¡£Æäʵ·Ç³£¼òµ¥£¬Ö÷Òª¾ÍÊÇʹÓà MySQL ×Ô´øµÄ mysqldump ÃüÁî¡£
½Å±¾ÄÚÈÝÈçÏ£º
#!/bin/sh
# File: /home/mysql/backup.sh
# Database info
......

linuxϵͳ¹ÜÀí

ÕʺŹÜÀí
/etc/passwd         ϵͳÕʺÅÐÅÏ¢
/etc/shadow         ÕʺÅÃÜÂëÐÅÏ¢         ¾­MD5   32λ¼ÓÃÜ
          ÔÚÃÜÂëÀ¸Ç°Ãæ¼Ó¡º   *   ¡»¡º   !   ¡»½ûֹʹÓÃijÕʺÅ
/etc/group   &nb ......

linux ulimitÓ÷¨¼ò½é

¹¤×÷ÖÐÓõ½gdbÀ´·ÖÎö³ÌÐò±ÀÀ£Éú²úµÄcoreÎļþÎÊÌ⣺
ÕâÀï´ÓÍøÉϲéÀ´µÄÒ»¸öÃüÁîÓ÷¨£º
1,˵Ã÷:
      ulimitÓÃÓÚshellÆô¶¯½ø³ÌËùÕ¼ÓõÄ×ÊÔ´.
      2,Àà±ð:
      shellÄÚ½¨ÃüÁî
      3,Óï·¨¸ñʽ:
   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ