iptables에서 -m mac 을 사용할 수가 없습니다.

hyji의 이미지

iptables -I INPUT -i eth0 -m mac --mac-source 00:04:45:40:00:10 -j DROP
이런 식으로 하면 segment fault가 납니다.
인터넷에 나왔있는 샘플들도 다 해봤는데 mac 옵션만 들어가면
segment fault가 납니다.
왜 그럴까요?

참고로 iptables 버전은 1.2.5이구요,
Linux 버전은 2.4.18-Newnat 입니다.

iptables --help를 하면 -m mac 옵션이 나오지 않습니다.

도와주세요....ㅠㅠ

ocaptin의 이미지

ㅎㅎ 많은 도움은 못드리고요.. man에 설명이 있네요..
참고로 제 linux 서버에서 해보니 정상적으로 되는군요.

버전은 아래와 같고
[root@xfine root]# iptables -V
iptables v1.2.7a

man의 설명은 아래와 같습니다.
mac
--mac-source [!] address
Match source MAC address. It must be of the form
XX:XX:XX:XX:XX:XX. Note that this only makes sense
for packets coming from an Ethernet device and
entering the PREROUTING, FORWARD or INPUT chains.

ip_tables -h 에 있는 설명
--match -m match extended match (may load extension)

저는 한가지 유추하고 있는데 iptables명령 실행 시

아래와 같이 없던 ipt_mac이 loading되고 ip_tables에서 사용합니다. 거기서 뭔가 실마리가 있겠죠.. 제대로 module이 없거나
안생기는 듯..

[ocaptin@xfine sbin]$ ./lsmod
Module Size Used by Not tainted
ipt_mac 1240 1 (autoclean)
iptable_filter 2444 1 (autoclean)
ip_tables 15320 2 [ipt_mac iptable_filter]

hyji wrote:
iptables -I INPUT -i eth0 -m mac --mac-source 00:04:45:40:00:10 -j DROP
이런 식으로 하면 segment fault가 납니다.
인터넷에 나왔있는 샘플들도 다 해봤는데 mac 옵션만 들어가면
segment fault가 납니다.
왜 그럴까요?

참고로 iptables 버전은 1.2.5이구요,
Linux 버전은 2.4.18-Newnat 입니다.

iptables --help를 하면 -m mac 옵션이 나오지 않습니다.

도와주세요....ㅠㅠ

hyji의 이미지

man은 당삼 쳐봤죠...^^
암튼 답변 감사드리구요...
업체에서 iptables를 다시 보내주었는데....
인제 되네요....^^

괜한 헛수고만 했네요....ㅠㅠ

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.