控制对服务的访问
IPTABLES 源代码
IPTABLES是与最新的3.5版本Linux内核集成的IP信息包过滤系统。如果Linux系统连接到因特网或LAN、服务器或连接LAN和因特网的代理服务器,则该系统有利于在Linux系统上更好地控制IP信息包过滤和防火墙配置。
激活 iptables 服务
#!/bin/bash # A Sample OpenVPN-aware firewall. # eth0 is connected to the internet. # eth1 is connected to a private subnet. # …
#!/bin/sh # # Bring up vpn routing. # calculate the network address remote_network=`ipcalc -n "$remote"/"$remote_netmask_bits"`…
Linux之菜鸟日记(四) 最近菜鸟也不知道在忙着什么,对于Linux是正事没干,无聊的事倒是干了不少。甚至还用Linux骗了一顿晚饭,起因是我和一位朋友打赌,说能不占用任何分区就在一台原来装着Win98的机器装上Red Hat 7.1。朋…
Linux之菜鸟日记(四) 最近菜鸟也不知道在忙着什么,对于Linux是正事没干,无聊的事倒是干了不少。甚至还用Linux骗了一顿晚饭,起因是我和一位朋友打赌,说能不占用任何分区就在一台原来装着Win98的机器装上Red Hat 7.1。朋…
No such device No such device No such device No such device info, udhcp client (v0.9.8) started error, SIOCGIFINDEX failed!: …
# GNU Makefile listing dependencies between services when services are # started. # Run kudzu first. $(filter-out $
本程序是一个module, 使用这个程序需要先把它编译出来(这里是把main.c编译成main.o)。编译命令如下: gcc -O -c -Wall main.c 使用的时候须用insmod main.o命令加载,不…
#/bin/bash # # The script is based on the info on the web page # # http://yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGatewa…