System/OS
2003.04.23 10:35
[linux] 랜카드 2개 설정 & iptables 로 사설 ip..
Views 14788 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 |
---|---|---|---|---|---|
1077 | System/OS | [linux] ipchains 사용예(패킷 필터링) | hooni | 2003.04.23 | 14247 |
1076 | System/OS | [linux] ipfwadm를 이용한 패킷필터링(구버전) | hooni | 2003.04.23 | 13107 |
1075 | System/OS | [windows] 98/ME 속도 빠르게 튜닝(부팅,메모리,레지스터) | hooni | 2003.04.23 | 50535 |
1074 | System/OS | [windows] 도스 사용 팁 | hooni | 2003.04.23 | 17903 |
1073 | System/OS | [windows] 여러가지 활용 팁 | hooni | 2003.04.23 | 20041 |
1072 | System/OS | [windows] 배치(bat)파일 제작 방법 | hooni | 2003.04.23 | 17074 |
1071 | System/OS | [linux] 패킷 스니퍼링 | hooni | 2003.04.23 | 16391 |
1070 | System/OS | [linux] 패킷의 소스 주소 바꾸기 | hooni | 2003.04.23 | 18868 |
1069 | System/OS | [linux] iptables 명령어 매뉴얼(options) | hooni | 2003.04.23 | 11416 |
1068 | System/OS | [linux] 간단한 NAT 설정 script | hooni | 2003.04.23 | 12665 |
» | System/OS | [linux] 랜카드 2개 설정 & iptables 로 사설 ip.. | hooni | 2003.04.23 | 14788 |
1066 | System/OS | [linux] apache, php, jsp 환경설정하기.. | hooni | 2003.04.23 | 15321 |