服务器端,Debian Lenny,两张网卡,eth0 连接 ADSL,eth1 连接 客户端;客户端,Ubuntu 10.04。 Continue reading "Linux 下用 Iptables 实现共享 ADSL 上网"
标签:共享上网
Linux下用iptables共享上网、Redhat Linux 启动服务和系统文件及目录相关问题(links for 2007-10-24)
- RedHat 启动服务详解 - 城市胡同
littlebat注:
下面是作者列出的需要启动的服务
acpid
cpuspeed
crond
Iptables
Kudzu
Network
Random
Readahead和Readahead_early
Syslog - The /etc/sysconfig/ Directory
Red Hat Linux 8.0: The Official Red Hat Linux Reference Guide
Prev Chapter 3. Boot Process, Init, and Shutdown Next
The /etc/sysconfig/ DirectoryThe following information outlines some of the files found in the /etc/sysconfig/ directory, their functio - The /etc/sysconfig/network file
#GATEWAY=gwip, where gwip is the IP address of the remote network gateway -if available.
#GATEWAYDEV=gwdev, where gwdev is the device name eth# you use to access the remote gateway.
- Linux iptables firewall 設定常見 FAQ 整理 (最近更新時間:8/18/2006) - 网络技术 - linux宝库论坛 linux,社区,入门,下载,教程,命令,新闻,下载,论坛,人才,开源,自由软件 - Powered by Discuz!
NAT服务,让内部 privae ip 共享上网:
iptables -A POSTROUTING -t nat -s 192.168.1.0/24 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
或
iptables -A POSTROUTING -t nat -s 192.168.1.0/24 -j SNAT --to 210.1.1.1
echo 1 > /proc/sys/net/ipv4/i
Linux下用iptables实现共享上网及在Damn Small Linux中保存静态ip设置(links for 2007-10-23)
- 简单实现Iptables共享上网 - lydr的个人空间 - Linux中国博客 - powered by X-Space
IP伪装,是Linux系统的一种网络功能,如果一台Linux主机使用IP伪装功能连接到互联网上,那么其他计算机,不论是在同一个局域网上还是通过调制解调器连接,只要连接到这个Linux主机上,就可
- linux实现共享上网-mineral -JavaEye技术社区
配置Linux的NAT和ip_forward: 这里我直接从网上找了一个scripts。非常好用。
- RedHat 8.0 9.0提供ADSL共享上网的解决办法[抄袭篇] - LinuxSir.Org
三、在/etc/rc.d/rc.local中加入如下:echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE四、重新启动机器。就OK了。
- iB::Topic::Not-DHCP booting
Booting with static IP is discussed in the Wiki (manually adding command to /opt/bootlocal.sh).In DSL 3.4.4 & DSL 4.0 I updated netcardconf.lua to more easily handle static IP and persisting the setup. I recommend you download the latest and try it.