로그인
Sign in

L4 설정 후 ftp 접속후 ls명령어 안되는 경우

 

1. default gateway를 L4 스위치 1.x.x.7로 설정

 

2. L4 스위치에서 proxy 모드로 설정

 

3. [skt-windapd01 ~]$ ftp 15

Connected to 150).

220 {WARNING:Authorized use only}

Name (1501): 

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

227 Entering Passive Mode (1).

425 Security: Bad IP connecting.    <---- 이 메세지 발생하여 아래의 구문 추가

ftp> pass

Passive mode off.

ftp> ls

500 Illegal PORT command.

ftp: bind: Address already in use

 

4. /etc/vsftpd/vsftpd.conf에 추가

pasv_promiscuous=yes

 

---------

 

  (15) 에서 작업했습니다.

 

 

1번 서버에 직접 접속

[g@-wi1 ~]$ ftp

Connected to 1

220 {WARNING:Authorized use only}

Name (15

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

227 Entering Passive Mode (19).

150 Here comes the directory listing.

-rw-rw-r--    1 1008     1008            0 Jul 10 11:39 1st_server.chk

226 Directory send OK.

ftp> bye

221 Goodbye.

 

2번 서버에 직접 접속

[g1 ~]$ ftp 15

Connected to 1

220 {WARNING:Authorized use only}

Name (15

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

227 Entering Passive Mode (10).

150 Here comes the directory listing.

-rw-rw-r--    1 1008     1008            0 Jul 10 11:40 2nd_server.chk

-rwxrwxrwx    1 0        0           21533 Jun 08 13:26 mkdir_0601.sh

226 Directory send OK.

ftp> bye

221 Goodbye.

 

L4로 접속

[@s~]$ ftp 1

Connected to ).

220 {WARNING:Authorized use only}

Name (150.):

331 Please specify the password.

Password:

230 Login successful.

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> ls

227 Entering Passive Mode (150,3).

ftp: connect: 연결 시간 초과

ftp> bye

221 Goodbye.

 

 

List of Articles
공지 자주 사용하는 명령어
제비게릴라
179     2019-06-27 2023-09-20 14:11