Small linux, Letsgo-Linux Enterprise Application-Linux server application information. The following is a detailed description. Suffering from attacks on Linux servers, I have been trying to compress my own proxy servers, so that others can't do anything else, the best advantage is that if the hard disk or system is down, you only need to clone the configuration and then OK,
I .. PPPOE
1. kernel options
CONFIG_PPP = y
CONFIG_PPP_ASYNC = y
CONFIG_PPP_SYNC_TTY = y
CONFIG_PPP_DEFLATE = y
CONFIG_PPP_BSDCOMP = y
CONFIG_PPPOE = y
CONFIG_N_HDLC = y
2./dev Device File
/Dev/ppp file. Creation Method: mknod -- mode = 664/dev/ppp c 108 0
Chmod 600/dev/ppp
3. download the latest PPP software, pppd2.4.2 and then compile
4. download the latest rp-pppoe. The configuration during compilation is as follows:./configure -- enable-plugin = $ PPPDIR
$ The directory of PPPDIR is the directory of the PPP just compiled.
5. Edit the/etc/ppp/pppoe. conf file and add: LINUX_PLUGIN =/etc/ppp/plugins/rp-pppoe.so
6. Then, go to adsl-setup.
7. Description:
A. the pap-secrets file is the user name and password, and the CHAP file is/etc/PPP/chap-secrets.
B./etc/PPP/PPPOE. conf file needs to be changed
8. Files after installation:
/Usr/sbin/PPPOE
/Usr/sbin/PPPOE-server
/Usr/sbin/PPPOE-sniff
/Usr/sbin/PPPOE-relay
/Usr/sbin/adsl-connect
/Usr/sbin/adsl-start
/Usr/sbin/adsl-stop
/Usr/sbin/adsl-setup
/Usr/sbin/adsl-status
II. NETWORK and NETFILTER
1. kernel options
Block devices
Loopback device support
RAM disk support Networking options
Network Packet filtering (replaces ipchains) IP: Netfilter configuration (all of the following are compiled to the kernel) File systems
Compressed ROM file system support
Ext3 journalling file system support 3. Use a file system that can be compressed 1. Package the directory to be compressed: mkcramfs opt. cramfs 2. mount: mount-o loop-t cramfs opt. cramfs/opt 3. Release: cramfsck-x Directory 4. kernel needs: Block devices
Loopback device support File systems
Compressed ROM file system support 4. Use RAMDISK 1. Create: mkdir/tmp/RamDisk0 Mke2fs/dev/ram0 Mount/dev/ram0/tmp/RamDisk0 2. kernel options: Block devices --->
RAM disk support A. The ramdisk size can be changed by passing ramdisk_size = 10000 to the kernel during compilation. B. When using modules, change the size during loading:/etc/conf. modules Options rd rd_size = 10000 C. Load when inserting a module: insmod rd rd_size = 10000 5. System Startup 1. Necessary Directories Install-d {bin, boot, dev/pts, etc/{init. d, network}, proc, lib, mnt} Install-d {sbin, usr/local, var/{log, run}, opt} Install-d root-m 0750 Install-d tmp/var/tmp-m 1777 Install-d usr/{bin, include, lib, sbin, share, src} 2. Necessary Device Files Mknod-m 622 console c 5 1 Mknod-m 666 null c 1 3 Mknod-m 666 zero c 1 5 Mknod-m 666 ptmx c 5 2 Mknod-m 666 tty c 5 0 Mknod-m 666 tty0 c 4 0 Mknod-m 666 tty1 c 4 1 Mknod-m 666 tty2 c 4 2 Mknod-m 666 tty3 c 4 3 Mknod-m 666 tty4 c 4 4 Mknod-m 666 tty5 c 4 5 Mknod-m 666 tty6 c 4 6 Mknod-m 444 random c 1 8 Mknod-m 444 urandom c 1 9 Mknod-m 660 hda B 3 0 Mknod-m 660 hda1 B 3 1 Mknod-m 660 hdb B 3 64 Mknodded-m 660 hdb1 B 3 65 Mknod -- mode = 664/dev/ppp c 108 0 Chmod 600/dev/ppp Install-d/dev/loop For I in 0 1 2 3 4 5 6 7; Do mknod/dev/loop/$ I B 7 $ I Done Chown root: tty {console, ptmx, tty} Chown root: tty? Chown root: disk {hda, hda1, hdb, hdb1} MAKEDEV-v mem MAKEDEV-v kmem MAKEDEV-v ram
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.