Contents

System/OS
2003.04.23 10:34

[linux] 간단한 NAT 설정 script

조회 수 12599 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
#!/bin/sh
insmod ip_tables
insmod iptable_filter
insmod ip_conntrack
insmod ip_conntrack_ftp
insmod ip_nat_ftp
insmod ipt_state
insmod ipt_limit

iptables -t filter -F user_chain
iptables -t filter -X user_chain
iptables -t filter -N user_chain
iptables -t filter -F FORWARD
#iptables -t filter -A FORWARD -p tcp -d 192.168.3.80 -j user_chain
iptables -t filter -A user_chain -j DROP

iptables -t nat -F POSTROUTING
iptables -t nat -A POSTROUTING -s 192.168.1.2 -o eth0 -j SNAT --to 192.168.3.80
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to 192.168.3.68

iptables -t nat -F PREROUTING
iptables -A PREROUTING -t nat -d 192.168.3.80 -j DNAT --to 192.168.1.2

##/proc/sys/net/ipv4/ip_forward
##파일을 수정 0 --> 1 로 수정


?

  1. [windows] 98/ME 속도 빠르게 튜닝(부팅,메모리,레지스터)

    Date2003.04.23 CategorySystem/OS Byhooni Views50441
    Read More
  2. [windows] 도스 사용 팁

    Date2003.04.23 CategorySystem/OS Byhooni Views17808
    Read More
  3. [windows] 여러가지 활용 팁

    Date2003.04.23 CategorySystem/OS Byhooni Views19971
    Read More
  4. [windows] 배치(bat)파일 제작 방법

    Date2003.04.23 CategorySystem/OS Byhooni Views17004
    Read More
  5. [linux] 패킷 스니퍼링

    Date2003.04.23 CategorySystem/OS Byhooni Views16317
    Read More
  6. [linux] 패킷의 소스 주소 바꾸기

    Date2003.04.23 CategorySystem/OS Byhooni Views18786
    Read More
  7. [linux] iptables 명령어 매뉴얼(options)

    Date2003.04.23 CategorySystem/OS Byhooni Views11335
    Read More
  8. [linux] 간단한 NAT 설정 script

    Date2003.04.23 CategorySystem/OS Byhooni Views12599
    Read More
  9. [linux] 랜카드 2개 설정 & iptables 로 사설 ip..

    Date2003.04.23 CategorySystem/OS Byhooni Views14734
    Read More
  10. [linux] apache, php, jsp 환경설정하기..

    Date2003.04.23 CategorySystem/OS Byhooni Views15234
    Read More
  11. [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd

    Date2003.04.23 CategorySystem/OS Byhooni Views32454
    Read More
  12. [linux] 특수문자 환경 설정(stty)

    Date2003.04.23 CategorySystem/OS Byhooni Views15277
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17