Contents

Views 14741 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
-------------------------------------------------------------------


?

  1. [linux] DNS(Domain Name System) 설치, 설정

  2. [sql] alter table 쿼리 예제

  3. [linux] 스케쥴링 순서(nice) 변경하기

  4. [doc] 피쳐셀렉션(feature selection using..) 발표 자료

  5. [linux] 간단한 NAT 설정 script

  6. [linux] root 전환시 패스워드 없이 su 사용하기

  7. [linux] 프로세스 상태확인(ps)

  8. [linux] 콘솔 기본언어 설정 방법

  9. [sql] 내 방명록 답글 찾는 쿼리문.. (JOIN 구문)

  10. [linux] ProFTPD 타임아웃 설정

  11. [router] 시스코 라우터 명령어 모드..

  12. [linux] 아파치 설치/설정(proxy)

Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 ... 17 Next
/ 17