방화벽 설정 관련해 조언을 구합니다...

ms1324의 이미지

우분투 10.04 서버 lts 를 쓰고 있습니다..

현재 우분투 서버에서 dhcp, 아파치, mysql, ssh [none rsa]서버를 돌리고 있습니다.

dhcp 서버 구축을 위해 iptable 명령을 이용했는데 방화벽 외부 공격이 두려워서 구글링 해봐도 단편적인 명령어만 나올뿐이네요..

아래는 iptables.sav 파일 내용이구요..

-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -m conntrack --ctstate NEW,RELATED,ESTABLISHED -j ACCEPT
COMMIT
*nat
-A POSTROUTING -o eth0 -j MASQUERADE

lsof -i -nP 명령어를 이용해서 현재 열려 있는 포트를 검색해 보니 아래와 같이 나오는데요..

COMMAND    PID    USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
vsftpd     643    root    3u  IPv4   3621      0t0  TCP *:21 (LISTEN)
dhclient3  852    root    5u  IPv4   3700      0t0  UDP *:68
sshd       899    root    3r  IPv4   4258      0t0  TCP *:22 (LISTEN)
sshd       899    root    4u  IPv6   4260      0t0  TCP *:22 (LISTEN)
mysqld     913   mysql   10u  IPv4   4287      0t0  TCP *:3306 (LISTEN)
dhcpd3    1004   dhcpd    5u  IPv4   4639      0t0  UDP *:67
apache2   1045    root    3u  IPv4   4706      0t0  TCP *:80 (LISTEN)
apache2   1053 hwansgo    3u  IPv4   4706      0t0  TCP *:80 (LISTEN)
apache2   1055 hwansgo    3u  IPv4   4706      0t0  TCP *:80 (LISTEN)
apache2   1056 hwansgo    3u  IPv4   4706      0t0  TCP *:80 (LISTEN)
apache2   1057 hwansgo    3u  IPv4   4706      0t0  TCP *:80 (LISTEN)
apache2   1059 hwansgo    3u  IPv4   4706      0t0  TCP *:80 (LISTEN)
apache2   1415 hwansgo    3u  IPv4   4706      0t0  TCP *:80 (LISTEN)
sshd      1848    root    3r  IPv4   6018      0t0  TCP 114.234.184.123:22->192.168.1.101:3187 (ESTABLISHED)
sshd      1924  ms1324    3u  IPv4   6018      0t0  TCP 114.234.184.123:22->192.168.1.101:3187 (ESTABLISHED)
sshd      1972    root    3r  IPv4   6355      0t0  TCP 114.234.184.123:22->192.168.1.101:3187 (ESTABLISHED)
sshd      2047  ms1324    3u  IPv4   6355      0t0  TCP 114.234.184.123:22->192.168.1.101:3187 (ESTABLISHED)

현재 이런 상태라면 따로 건들지 않아도 될 상황인거 같은데 혹시 보안관련해서 조언을 주실수 있으신가 궁금합니다..

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <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].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.