System/OS
2003.04.23 10:35
[linux] 랜카드 2개 설정 & iptables 로 사설 ip..
Views 14786 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 |
---|---|---|---|---|---|
130 | System/OS |
[mac] Mac OS 패키지 매니저, HomeBrew
![]() |
hooni | 2015.01.03 | 1480 |
129 | System/OS | [mac] How to uninstall MySQL on Mac OS. | hooni | 2017.11.08 | 1052 |
128 | System/OS | [mac] Homebrew/rvm/cocoapod setting | hooni | 2017.07.29 | 1185 |
127 | System/OS | [mac] Charlesproxy 간단한 설정 내용~ | hooni | 2013.11.12 | 12448 |
126 | System/OS |
[macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’
![]() |
hooni | 2022.06.01 | 977 |
125 | System/OS | [linux] 한글 URL 인식할 수 있게 아파치(Apache) 설정 (mod_url.c 설치) | hooni | 2013.04.23 | 13161 |
124 | System/OS | [linux] 프로세스의 stat 상태에 대한 설명 | hooni | 2013.04.23 | 10841 |
123 | System/OS | [linux] 프로세스 상태확인(ps) | hooni | 2003.04.23 | 12788 |
122 | System/OS | [linux] 프로그램 설치방법 (내공쌓기) | hooni | 2003.04.23 | 13496 |
121 | System/OS | [linux] 패킷의 소스 주소 바꾸기 | hooni | 2003.04.23 | 18866 |
120 | System/OS | [linux] 패킷 스니퍼링 | hooni | 2003.04.23 | 16391 |
119 | System/OS | [linux] 파일내 문자열 찾아 바꾸기 | hooni | 2013.04.23 | 12275 |