라우터에서 PNAT를 구성했습니다. 다 괜찮아 보인다. NAT 라우터 뒤에있는 서버의 포트 전달을 위해 고정 NAT를 설정했습니다.
Ext에서 전달되는 포트를 열도록 ACL을 설정했습니다. 인터페이스
그러나 포트 스캔을 할 때 ssh 만 열려 있고 나머지 포트는 닫힙니다.
이것이 왜 그런지에 대한 아이디어가 있습니까? 고마워
아래는 회의입니다.
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname OME-GW
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
!
!
dot11 syslog
ip source-route
!
!
!
!
ip cef
no ip bootp server
ip domain name *******
ip name-server [x.x.x.x]
ip name-server [x.x.x.x]
ip name-server 8.8.8.8
ip name-server 8.8.4.4
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
license udi pid CISCO1841 sn XXXXXX
!
redundancy
!
!
ip ssh port 22 rotary 1
!
class-map match-all win_kasp_updates_allow
match protocol http url "/.geo.kaspersky.com"
match protocol http url "/.windowsupdate.com"
match protocol http url "/update.windows.com"
match protocol http url "/windowsupdate.microsoft.com"
match protocol http url "/downloads4.kaspersky-labs.com"
match access-group 10
class-map match-all everything_else
match any
!
!
policy-map win_kasp_updates_allow_policy
class win_kasp_updates_allow
drop
class everything_else
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.21 255.255.255.0
ip access-group 103 in
ip flow ingress
ip flow egress
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
!
service-policy input win_kasp_updates_allow_policy
!
interface FastEthernet0/1
ip address [Public_IP] 255.255.255.252
ip access-group 102 in
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
!
interface Serial0/1/0
no ip address
shutdown
no fair-queue
clock rate 2000000
!
!
interface Serial0/1/1
no ip address
shutdown
clock rate 2000000
!
!
ip default-gateway [ISP_P2P_IP]
ip forward-protocol nd
no ip http server
no ip http secure-server
!
ip flow-export version 5
ip flow-export destination 192.168.1.151 9991
ip flow-top-talkers
top 10
sort-by bytes
!
ip dns server
ip nat inside source list 1 interface FastEthernet0/1 overload
ip nat inside source static tcp 192.168.1.20 25 [Public_IP] 25 extendable
ip nat inside source static tcp 192.168.1.20 25 [Public_IP] 26 extendable
ip nat inside source static tcp 192.168.1.20 53 [Public_IP] 53 extendable
ip nat inside source static udp 192.168.1.20 53 [Public_IP] 53 extendable
ip nat inside source static tcp 192.168.1.20 110 [Public_IP] 110 extendable
ip nat inside source static udp 192.168.1.20 1194 [Public_IP] 1194 extendable
ip route 0.0.0.0 0.0.0.0 [ISP_P2P_IP]
!
access-list 1 permit 192.168.1.0 0.0.0.255
access-list 10 deny 192.168.1.22
access-list 10 permit 192.168.1.0 0.0.0.255
access-list 102 permit tcp any any eq pop3
access-list 102 permit tcp any any eq smtp
access-list 102 permit tcp any any eq 1194
access-list 102 permit udp any any
access-list 102 permit tcp any any
access-list 102 permit icmp any [ISP_P2P_IP] 0.0.0.3 echo
access-list 102 permit icmp any [ISP_P2P_IP] 0.0.0.3 echo-reply
access-list 102 deny ip host 195.154.109.72 any
access-list 102 deny ip 192.168.0.0 0.0.255.255 any
access-list 102 deny ip 172.16.0.0 0.15.255.255 any
access-list 102 deny ip 10.0.0.0 0.255.255.255 any
access-list 102 deny ip 127.0.0.0 0.255.255.255 any
access-list 102 deny ip 255.0.0.0 0.255.255.255 any
access-list 102 deny ip 224.0.0.0 31.255.255.255 any
access-list 102 deny ip host 0.0.0.0 any
access-list 103 deny ip host 192.168.1.9 any
access-list 103 deny ip host 192.168.1.35 any
access-list 103 permit ip any any
access-list 103 permit tcp 192.168.1.0 0.0.0.255 any
access-list 103 permit udp host 192.168.1.26 eq domain any
access-list 103 permit tcp host 192.168.1.26 eq domain any
access-list 103 permit udp 192.168.1.0 0.0.0.255 any
no cdp run
!
!
!
!
snmp-server community secret RO 90
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
exec-timeout 5 0
login local
rotary 1
transport input ssh
!
scheduler allocate 20000 1000
end
포트는 라우터에서 "열리지"않고 응용 프로그램에 의해 서버에서 "열려"있습니다. 라우터에서 "차단 해제"또는 "번역"됩니다. 포트를 열려면 서버에서 코드가 IO 용 포트를 설정하는 서비스를 실행해야하며 예상 클라이언트에는 포트에 대한 액세스 가능한 경로가 있어야합니다 (라우터 전달이 오는 경로). 포트에서 서비스가 실행되고 있고 해당 서비스가 들어오는 연결을위한 LAN 인터페이스에 바인드되어 있는지 확인하십시오 (이것은 특히 Linux 서버에 중요합니다).
—
Frank Thomas
프랭크 감사합니다. 시나리오는 이전에 모든 서비스가 정상적으로 실행되는 Linux 서버에 인터넷이 연결되어 있다는 것입니다. 이제 서버를 라우터 뒤에 배치하기로 결정했지만 여전히이 서비스를 서비스하도록했습니다. 따라서 포트가 열려 있고 서버가이 포트에서 수신 대기 중입니다.
—
chico ahmad
따라서 포트 전달 규칙이 있고 WAN 인바운드 필터가 해당 포트에서 상태 주석이없는 포트를 허용하고 기본 드롭 규칙 또는 트래픽을 잡을 수있는 다른 드롭 규칙 이전에 발생하는 패킷을 허용합니까? 포트를 어떻게 스캔합니까? GCR의 방패 업 또는 canyouseeme.org?
—
Frank Thomas
포트 포워딩 규칙이 있습니다. 명시 적 거부 전에 허용 된 WAN 인터페이스의 각 포트 인바운드에 대한 ACL이 있습니다. 그리고 당신 은 열려있는 포트를 스캔하기 위해 yougetsignal.com/tools/open-ports 를 사용하고 있습니다
—
chico ahmad
시간 내 주셔서 감사합니다. 문제를 해결할 수 있었고 라우터 뒤에서 서비스를 실행하는 서버의 기본 게이트웨이에 문제가있었습니다. 나는 여전히 내 오래된 ISP를 가리키고있었습니다. 문제 해결됨.
—
chico ahmad 2016 년