System/OS
2003.04.23 10:35
[linux] 랜카드 2개 설정 & iptables 로 사설 ip..
Views 14788 Comment 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
-------------------------------------------------------------------
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
117 | System/OS | [linux] Proftpd 설치 가이드 | hooni | 2003.04.23 | 13090 |
116 | System/OS | [linux] 기존 환경설정 저장하면서 커널 컴파일.. | hooni | 2003.04.23 | 13538 |
115 | System/OS | [linux] 스케쥴링 순서(nice) 변경하기 | hooni | 2003.04.23 | 12611 |
114 | System/OS | [linux] 셀 스크립트 if, for, case in.. | hooni | 2003.04.23 | 13763 |
113 | System/OS | [linux] 종료와 종료코드 확인(환경변수에서) | hooni | 2003.04.23 | 15630 |
112 | System/OS | [linux] 프로세스 상태확인(ps) | hooni | 2003.04.23 | 12791 |
111 | System/OS | [linux] 메타(기호)문자의 의미와 사용 | hooni | 2003.04.23 | 16481 |
110 | System/OS | [linux] 특수문자 환경 설정(stty) | hooni | 2003.04.23 | 15356 |
109 | System/OS | [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd | hooni | 2003.04.23 | 32535 |
108 | System/OS | [linux] apache, php, jsp 환경설정하기.. | hooni | 2003.04.23 | 15321 |
» | System/OS | [linux] 랜카드 2개 설정 & iptables 로 사설 ip.. | hooni | 2003.04.23 | 14788 |
106 | System/OS | [linux] 간단한 NAT 설정 script | hooni | 2003.04.23 | 12666 |