파일에 아이피 하나씩 적어서 접속해오는 클라이언트를 일일이 비교하는 방법 외에
아이피를 하나씩 적지 않고 서브넷 단위(?)로 적어 놓으려 합니다. 그래서 이 범위에 한해서 접속하는 클라이언트는 모두 연결을 받으려 하는데요..
어떤식으로 하는게 효율적일까요..
c클래스면 몇개 안대지만 b클래스 이상이면 아이피 개수가 엄청 많아져서 어떻게 할지 고민입니다..
서버 운영체제에 따라서 방법이 달라질 수 있겠지만, 윈도우 계열이라면 ipsec 리눅스 계열이면 iptables 쪽을 보시면 원하시는 기능을 구현하실 수 있습니다.
간단한 예를 들면 192.168.100.0/24 라고 설정한 ip 주소 영역에 접근 허용/거부를 설정하시면 192.168.100.x 대역에 대해서 해당 규칙이 적용됩니다.
텍스트 포맷에 대한 자세한 정보
<code>
<blockcode>
<apache>
<applescript>
<autoconf>
<awk>
<bash>
<c>
<cpp>
<css>
<diff>
<drupal5>
<drupal6>
<gdb>
<html>
<html5>
<java>
<javascript>
<ldif>
<lua>
<make>
<mysql>
<perl>
<perl6>
<php>
<pgsql>
<proftpd>
<python>
<reg>
<spec>
<ruby>
<foo>
[foo]
어떤 서버 운영체제를 쓰시는지요?
서버 운영체제에 따라서 방법이 달라질 수 있겠지만,
윈도우 계열이라면 ipsec
리눅스 계열이면 iptables 쪽을 보시면 원하시는 기능을 구현하실 수 있습니다.
간단한 예를 들면 192.168.100.0/24 라고 설정한 ip 주소 영역에 접근 허용/거부를 설정하시면
192.168.100.x 대역에 대해서 해당 규칙이 적용됩니다.
댓글 달기