B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-27 Friday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ÀÚÀ¯°Ô½ÃÆÇ
Read No. 53 article 2002-01-07 08:15:24
NickName   Ç®ºñ´©
Subject   Á¦°¡ »ç¿ëÇÏ´Â iptables °ü·Ã ¼ÂÆÃÀÔ´Ï´Ù.
¼öÁ¤ ¾øÀÌ ¿Ã¸³´Ï´Ù. # ·Î ÁÖ¼®Ã³¸®µÈ ºÎºÐÀº ¼³Á¤¿À·ù ȤÀº ¹Ì½Ã¿ë
ºÎºÐ ÀÔ´Ï´Ù.


iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
echo 1> /proc/sys/net/ipv4/ip_forward

# web - 192.168.0.2 (xp iis)
iptables -A PREROUTING -t nat -p tcp --dport 8088 -j DNAT --to 
192.168.0.2:8088
iptables -A PREROUTING -t nat -p udp --dport 8088 -j DNAT --to 
192.168.0.2:8088

# ftp - 192.168.0.2 (serv-u)
iptables -A PREROUTING -t nat -p udp --dport 2222 -j DNAT --to 
192.168.0.2:2222
iptables -A PREROUTING -t nat -p tcp --dport 2222 -j DNAT --to 
192.168.0.2:2222

# soribada
iptables -A PREROUTING -t nat -p udp --dport 9052 -j DNAT --to 
192.168.0.2:9052
iptables -A PREROUTING -t nat -p udp --dport 9051 -j DNAT --to 
192.168.0.2:9051
iptables -A PREROUTING -t nat -p udp --dport 9050 -j DNAT --to 
192.168.0.2:9050
iptables -A PREROUTING -t nat -p udp --dport 9049 -j DNAT --to 
192.168.0.2:9049

# gabber
#iptables -A PREROUTING -t nat -p tcp --dport 5222 -j DNAT --to 
192.168.0.2:5222

# nanumi
#iptables -A FORWARD -j ACCEPT
#iptables -A INPUT -p tcp -d 192.168.0.2 --dport 9292 -j ACCEPT
#iptables -A INPUT -p udp -d 192.168.0.2 --dport 9292 -j ACCEPT
#iptables -A OUTPUT -p tcp -s 192.168.0.2 --dport 9292 -j ACCEPT
#iptables -A OUTPUT -p udp -s 192.168.0.2 --dport 9292 -j ACCEPT
iptables -A PREROUTING -t nat -p tcp --dport 9696 -j DNAT --to 
192.168.0.2:9696
#iptables -A PREROUTING -t nat -p udp --dport 9696 -j DNAT --to 
192.168.0.2:9696

# edonkey
iptables -A PREROUTING -t nat -p tcp --dport 4662 -j DNAT --to 
192.168.0.2:4662
iptables -A PREROUTING -t nat -p udp --dport 4665 -j DNAT --to 
192.168.0.2:4665

# ms_remote_acc & netmeeting
#iptables -A PREROUTING -t nat -p tcp --dport 522 -j DNAT --to 
192.168.0.2:522
#iptables -A PREROUTING -t nat -p tcp --dport 389 -j DNAT --to 
192.168.0.2:389
#iptables -A PREROUTING -t nat -p tcp --dport 1503 -j DNAT --to 
192.168.0.2:1503
#iptables -A PREROUTING -t nat -p tcp --dport 1720 -j DNAT --to 
192.168.0.2:1720
#iptables -A PREROUTING -t nat -p tcp --dport 1731 -j DNAT --to 
192.168.0.2:1731
#iptables -A PREROUTING -t nat -p tcp --dport 49000:50000 -j DNAT --to 
192.168.0.2:49000-50000
#iptables -A PREROUTING -t nat -p udp --dport 49000:50000 -j DNAT --to 
192.168.0.2:49000-50000
#iptables -A PREROUTING -t nat -p tcp --dport 6891:6901 -j DNAT --to 
192.168.0.2:6891-6901
#iptables -A PREROUTING -t nat -p udp --dport 6891:6901 -j DNAT --to 
192.168.0.2:6891-6901

# jini port forwarding
iptables -A PREROUTING -t nat -p udp --dport 4000:4010 -j DNAT --to 
192.168.0.2
iptables -A PREROUTING -t nat -p tcp --dport 4000:4010 -j DNAT --to 
192.168.0.2

# mirc dcc
iptables -A PREROUTING -t nat -p tcp --dport 3500:3510 -j DNAT --to 
192.168.0.2:3500-3510
iptables -A PREROUTING -t nat -p udp --dport 3500:3510 -j DNAT --to 
192.168.0.2:3500-3510
iptables -A OUTPUT -t nat -p tcp --dport 3500:3510 -j DNAT --to 
192.168.0.2:3500-3510
iptables -A OUTPUT -t nat -p udp --dport 3500:3510 -j DNAT --to 
192.168.0.2:3500-3510

[ °ü·Ã±Û ]


53 Á¦°¡ »ç¿ëÇÏ´Â iptables °ü·Ã ¼ÂÆÃÀÔ´Ï´Ù.  Ç®ºñ´©  2002.01.07  ..624 
  ´äÀå °¨¼Ý~(³Ã¹«)  ¹ãÇϴà 2002.01.07  ..608 
Regist Addr [ 192.168.0.2 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û ±Û¾²±â ´äÀå¾²±â ¼öÁ¤ »èÁ¦
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.06 Sec ] SQL Time [ 0.03 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®