>> Delete No. 30695 article
No. 한통 ADSL 리눅스에 물린 내부PC에서 FTP 접속

등록 2001-05-18 09:52:00 By localhost     조회 1
이름 봄봄    

		와우7.0 쓰고 있구요,
adsl을 IP masqerading 으로 pc 몇대 쓰고 있습니다.
FTP 포트가 3588인 외부 서버에 접속을 하려는데 잘 안되서 질문합니다.
포트를 다 열어놓은 것으로 생각되는데,
왜 안되는지 알려주시면 감사하겠습니다.
/etc/rc.d/rc.firewall 의 내용은 아래와 같습니다.
 <font color=666666>
#!/bin/sh
#
# firewall-masq         This script sets up firewall rules for a machine
#                       acting as a masquerading gateway
#
# Copyright (C) 2000 Roaring Penguin Software Inc.  This software may
# be distributed under the terms of the GNU General Public License, version
# 2 or any later version.
 # Interface to Internet
EXTIF=ppp+
 ANY=0.0.0.0/0
 ipchains -P input ACCEPT
ipchains -P output ACCEPT
ipchains -P forward DENY
 ipchains -F forward
ipchains -F input
ipchains -F output
 # Deny TCP and UDP packets to privileged ports
# ipchains -A input -l -i $EXTIF -d $ANY 0:1023 -p udp -j DENY
# ipchains -A input -l -i $EXTIF -d $ANY 0:1023 -p tcp -j DENY
 # Deny TCP connection attempts
# ipchains -A input -l -i $EXTIF -p tcp -y -j DENY
 # Deny ICMP echo-requests
# ipchains -A input -l -i $EXTIF -s $ANY echo-request -p icmp -j DENY
 # Do masquerading
ipchains -A forward -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
 ipchains -A output -p tcp -d 0.0.0.0/0 telnet -t 0x01 0x10
ipchains -A output -p tcp -d 0.0.0.0/0 ftp -t 0x01 0x10
ipchains -A output -p tcp -s 0.0.0.0/0 ftp-data -t 0x01 0x08
 modprobe ip_masq_autofw
modprobe ip_masq_cuseeme
modprobe ip_masq_ftp
modprobe ip_masq_irc
modprobe ip_masq_mfw
modprobe ip_masq_portfw
modprobe ip_masq_pptp
modprobe ip_masq_quake
modprobe ip_masq_raudio
modprobe ip_masq_user
 ipmasqadm autofw -A -v -u -r udp 51200 51201 -c tcp 7175        # Dialpad
ipmasqadm autofw -A -v -u -r udp 51210 51210 -c tcp 7175        # Dialpad
ipmasqadm autofw -A -u -r udp 4000 4020 -c tcp 8000             # Wowcall
ipmasqadm autofw -A -u -r udp 32000 32000 -c tcp 9001           # Telefree
ipmasqadm autofw -A -r udp 8888 8888 -c tcp 7777                # Live24
ipmasqadm autofw -A -r udp 6112 6112 -c tcp 6112                # Star
ipmasqadm autofw -A -r udp 116 116 -c tcp 116                   # Star
ipmasqadm autofw -A -r udp 118 118 -c tcp 118                   # Star
</font>
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved