System/OS
2003.04.23 10:35
[linux] 랜카드 2개 설정 & iptables 로 사설 ip..
조회 수 15407 댓글 0
/etc/sysconfig/network
-------------------------------------------------------------------
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=ns
GATEWAY=211.227.115.142
GATEWAYDEV=eth0
-------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth0
-------------------------------------------------------------------
BOOTPROTO=static
BROADCAST=211.227.115.0
IPADDR=211.227.115.130
NETMASK=255.255.255.0
NETWORK=211.227.115.0
ONBOOT=yes
-------------------------------------------------------------------
/etc/sysconfig/network-scripts/ifcfg-eth1
-------------------------------------------------------------------
DEVICE=eth1
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
-------------------------------------------------------------------
/etc/rc.d/rc.local
-------------------------------------------------------------------
insmod ip_tables
insmod iptable_filter
insmod ip_conntrack
insmod ipt_state
insmod ipt_limit
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 211.227.115.130
echo "1" > /proc/sys/net/ipv4/ip_forward
-------------------------------------------------------------------
-
[linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd
-
[linux] apache, php, jsp 환경설정하기..
-
[linux] 랜카드 2개 설정 & iptables 로 사설 ip..
-
[linux] 간단한 NAT 설정 script
-
[linux] iptables 명령어 매뉴얼(options)
-
[linux] 패킷의 소스 주소 바꾸기
-
[linux] 패킷 스니퍼링
-
[windows] 배치(bat)파일 제작 방법
-
[windows] 여러가지 활용 팁
-
[windows] 도스 사용 팁
-
[windows] 98/ME 속도 빠르게 튜닝(부팅,메모리,레지스터)
-
[linux] ipfwadm를 이용한 패킷필터링(구버전)