Contents

Views 14778 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
/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
-------------------------------------------------------------------


?

List of Articles
No. Category Subject Author Date Views
82 System/OS 라우팅 경로 결정 영향 요소 ㅋㅋ file hooni 2013.04.23 15921
81 System/OS OSI (Open Systems Interconnection) 개방형 시스템간 상호 접속 file hooni 2013.04.23 10838
80 System/OS 네트워크별 MTU(최대 전송 단위) hooni 2013.04.23 17705
79 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 11003
78 System/OS [router] 시스코 라우터 명령어 모드.. hooni 2013.04.23 13000
77 System/OS [mysql] 시간 관련 SQL구문.. hooni 2013.04.23 10865
76 System/OS [linux] 데비안(debian.org) 리눅스 명령어 예제 hooni 2006.04.23 10495
75 System/OS [linux] 꿀통(honeyd) 설치하기.. 메뉴얼 과정 6 file hooni 2006.04.23 20294
74 System/OS [web] 웹서비스 취약점 자료.. (논문첨부) file hooni 2003.04.23 18050
73 System/OS [linux] man 명령어 뽀개기.. hooni 2003.04.23 8774
72 System/OS [linux] root도 삭제하지 못하는 파일 속성 hooni 2003.04.23 12457
71 System/OS [linux] 터미널에서 문자 깨질 때 설정 ㅋㅋ hooni 2003.04.23 13961
Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 ... 17 Next
/ 17