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
26 System/OS [windows] 원격 데스크탑(터미널 서비스) 포트 변경 hooni 2013.04.23 16305
25 System/OS [windows] 윈도우 사용자 계정 로그인 암호 분실, 암호 변경하는 방법 file hooni 2015.07.09 21356
24 System/OS [windows] 윈도우즈 콘솔에서 정품인증 하는 방법 hooni 2017.05.24 5306
23 System/OS [windows] 인터넷 익스플로러(IE) 도구모음 표시줄에 아이콘 추가 file hooni 2013.04.23 18219
22 System/OS [windows] 종료, 재시작, 로그아웃 아이콘 만들기 hooni 2013.04.23 18102
21 System/OS [windows] 최근 열어본 문서목록 안나오게 하는 방법 hooni 2013.04.23 25477
20 System/OS [windows] 패스워드를 잊어먹었을때.. hooni 2003.04.23 17294
19 System/OS [펌] 마이크로서비스, 모노리포, SRE, ... 덮어놓고 구글 따라하면 안 되는 기술들 file hooni 2020.10.15 943
18 System/OS 개인적으로 쓰고 있는 bash_profile hooni 2015.01.16 842
17 System/OS 개인적으로 쓰고 있는 zshrc 파일 hooni 2022.02.25 824
16 System/OS 나중에 해봐야지.. libconv 설치.. ㅡ,.ㅡ; hooni 2013.04.23 19284
15 System/OS 네트워크 용어 정리 file hooni 2022.11.20 1207
14 System/OS 네트워크별 MTU(최대 전송 단위) hooni 2013.04.23 17641
13 System/OS 라우팅 경로 결정 영향 요소 ㅋㅋ file hooni 2013.04.23 15850
12 System/OS 맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen) hooni 2015.07.21 1898
11 System/OS 맥북에서 MAC/윈도우 멀티부팅시 시간 설정 file hooni 2013.04.23 29759
Board Pagination Prev 1 ... 9 10 11 12 13 Next
/ 13