Views 14732 Votes 0 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
42 System/OS [linux] CentOS 에 APM 설치하기 hooni 2015.01.02 1688
41 System/OS [mac] Mac OS 패키지 매니저, HomeBrew file hooni 2015.01.03 1309
40 System/OS [mac] 패키지 매니저, MacPort hooni 2015.01.03 969
39 System/OS [mac] OS X 요세미티 사용자가 많이 겪는 버그와 몇몇 불편사항 file hooni 2015.01.04 1518
38 System/OS [mac][추천 무료앱] 구름 입력기 - 국내 맥 사용자를 위한 한글 대안 입력기 1 file hooni 2015.01.04 2148
37 System/OS 개인적으로 쓰고 있는 bash_profile hooni 2015.01.16 842
36 System/OS [windows] 윈도우 사용자 계정 로그인 암호 분실, 암호 변경하는 방법 file hooni 2015.07.09 21356
35 System/OS 맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen) hooni 2015.07.21 1898
34 System/OS [mac] Mac OS에서 재생되는 사운드를 녹음하는 방법 file hooni 2016.10.03 1442
33 System/OS [mac] OS X 엘 캐피탄에서 Soudflower 사용하기 2 file hooni 2016.10.03 878
32 System/OS Enable the Develop Menu in Safari file hooni 2017.02.07 1069
31 System/OS Enable Safari Hidden Debug Menu in Mac OS X file hooni 2017.02.07 1142
30 System/OS [android] 초간단 HTTP, POST 전송 샘플 1 file hooni 2017.02.16 3448
29 System/OS 무료로 HTTPS 적용하기 (Lets' Encrypt) file hooni 2017.02.16 2174
28 System/OS [windows] 윈도우즈 콘솔에서 정품인증 하는 방법 hooni 2017.05.24 5306
27 System/OS [mac] Homebrew/rvm/cocoapod setting hooni 2017.07.29 997
Board Pagination Prev 1 ... 9 10 11 12 13 Next
/ 13