¼öÁ¤ ¾øÀÌ ¿Ã¸³´Ï´Ù. # ·Î ÁÖ¼®Ã³¸®µÈ ºÎºÐÀº ¼³Á¤¿À·ù ȤÀº ¹Ì½Ã¿ë ºÎºÐ ÀÔ´Ï´Ù. 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