¹ÌÅ©·Îƽ ¹æÈ­º® ¼³Á¤ °ü·ÃÇؼ­ ¹®ÀÇ µå¸³´Ï´Ù.

»ì¹Ù   
   Á¶È¸ 3819   Ãßõ 0    

 현재 고정IP와 유동IP를 2개를 이용하여 WAN을 구성하였고

내부 PC중 일부는 192.168.100.0/24 대역을 이용하게 DHCP 서버를 유동IP를 통하여 네트워크를 사용하게 하였습니다.

그리고 일부 PC는 192.168.0.0/24  대역을 이용하게 DHCP 서버를 구성하고 고정 IP를 통하여 네트워크를 사용하게 하였습니다.

그리고 방화벽 설정 중에 Port Forwarding 설정이 있어서 몇몇 Port에 대해서 192.168.100.0/24를 쓰는 대역의 PC들에 대하여

포트포워딩을 하게끔 해놓았고 잘 됩니다.

그런데 문제는 192.168.0.0/24 대역에 있는 PC에 대한 Port Forwarding이 되지를 않네요..

설정상에 어떠한 특정 설정이 필요한건지 잘 모르겠네요.

add action=dst-nat chain=dstnat dst-port=3389 protocol=tcp to-addresses=192.168.100.5 to-ports=3389

이렇게 되어있으면 원격 접속을 시도할때 원격 접속이 잘 되는데요

add action=dst-nat chain=dstnat dst-port=22 protocol=tcp to-addresses=192.168.0.5 to-ports=22

이렇게 되어있으면 SSH로 접속이 될줄 알았는데 접속이 되지를 않네요.

물론 서비스도 돌고 있고 다른 192.168.0.0/24 대역의 PC 들에서는 192.168.0.5번으로 SSH가 잘 붙습니다.

설정중 해당 관련은

/ip address

add address=xxx.xxx.xxx.xx/29 interface=ether2 network=xxx.xxx.xxx.xx

/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=ether1

/ip firewall mangle

add action=mark-connection chain=input in-interface=ether1 new-connection-mark=ether1_conn passthrough=yes
add action=mark-connection chain=input in-interface=ether2 new-connection-mark=ether2_conn passthrough=yes
add action=mark-routing chain=output connection-mark=ether1_conn new-routing-mark=to_ether1 passthrough=yes
add action=mark-routing chain=output connection-mark=ether2_conn new-routing-mark=to_ether2 passthrough=yes
add action=mark-connection chain=prerouting dst-address-type=!local new-connection-mark=ether1_conn passthrough=yes per-connection-classifier=src-address:2/0 src-address=192.168.100.2-192.168.200.254
add action=mark-connection chain=prerouting dst-address-type=!local new-connection-mark=ether2_conn passthrough=yes per-connection-classifier=src-address:2/1 src-address=192.168.0.2-192.168.0.254
add action=mark-routing chain=prerouting connection-mark=ether1_conn new-routing-mark=to_ether1 passthrough=yes src-address=192.168.100.2-192.168.200.254
add action=mark-routing chain=prerouting connection-mark=ether2_conn new-routing-mark=to_ether2 passthrough=yes src-address=192.168.0.2-192.168.0.254

/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether2 src-address=192.168.0.2-192.168.0.254
add action=masquerade chain=srcnat out-interface=ether1 src-address=192.168.100.2-192.168.200.254

/ip route
add distance=1 gateway=xxx.xxx.xxx.xx routing-mark=to_ether2

이렇게 되어있고 실제로 192.168.0.0/24 대역에서 외부 접속을 해보면 위의 gateway로 나가는것도 확인했습니다.

근데 거꾸로 들어오는건 어떤 설정이 더 필요한건지 모르겠네요.


ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


QnA
Á¦¸ñPage 2166/5662
2014-05   4889215   Á¤ÀºÁØ1
2015-12   1428174   ¹é¸Þ°¡
2016-10   7102   ÄĹÚ
2016-10   8262   Á¤ÀºÁØ1
2016-10   5312   Çϼ¿È£ÇÁ
2016-10   5395   ÁÖȲº°
2016-10   6715   µþ±â´ëÀå
2016-10   5268   muuu
2016-10   4722   ftp001
2016-10   6099   ³ªºñz
2016-10   5357   hyunsemo
2016-10   6840   ±è°Ç¿ì
2016-10   3822   BMW330E
2016-10   5011   ftp001
2016-10   3858   ±èÀ¯Áß
2016-10   4813   ¹Ì¼ö¸Ç
2016-10   3702   °Ü¿ï³ª¹«
2016-10   4121   ºü³ª³ª¿ìÀ¯
2016-10   4262   Áö½Ç·ç
2016-10   4672   wishing
2016-10   12161   ³ëÆ®ºÏÃʺ¸ÀÚ
2016-10   3887   ȲÁø¿ì