Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on Sparc
  • Search

iptables & limit option and hwclock on Sun Ultra Sparc 5

Have a Sparc system? Post here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
yoda2
n00b
n00b
Posts: 1
Joined: Sun Oct 27, 2002 8:51 pm
Contact:
Contact yoda2
Website

iptables & limit option and hwclock on Sun Ultra Sparc 5

  • Quote

Post by yoda2 » Sun Oct 27, 2002 9:20 pm

Hi,

Installing Gentoo on a Sun Ultra Sparc 5 (PCI& IDE version).

The problem:

When I use iptables with any limit command e.g.
$IPTABLES -A OUTPUT -m limit --limit 3/minute --limit-burst 3 -j LOG \
--log-level DEBUG --log-prefix "IPT OUTPUT packet died: "

iptables reacts with:
invalid argument.

I tried this also with a Debian Woody installation on the same sparc and also got a "invalid argument". On the internet I found one guy having the same problem (still not solved) (see: http://lists.debian.org/debian-sparc/20 ... 00116.html )

I already tried several things:
-) recompiled ipt_limit modules several times
-) recompiled iptables several times
-) switched from iptables 1.26a to 1.27a and vice versa
-) tried Gentoo (great distribution; as you see every nasty thing, brings something nice :lol: )

However the problem still remains.

After experimenting several nights I thought the problem could be with the internal clock. Since, in my opinion, the limit option has to make contact to the internal clock to know what 3 times a minute is.

Whenever I start Debian or Gentoo, it says something like: RTC no PC_RTC found. In contrast to this message, for some strange reason it's capable of displaying time and date correct, even after power-off.

Another funny thing is that when I try to boot OpenBSD, the startup-script of OpenBSD mentions that the date and time are 373 days ago (somewhere in 2001) and that I should reset and check time and date. (the "somewhere in 2001" is when I removed solaris i geuss). Thus, in my opinion OpenBSD is able to see two times&dates, since it is able to talk about 373 days ?!

So,

Now I was wondering:
1) Could it be the hardware clock which makes the limit option within iptables a problem or did I just smoke too much? (please don't blame me for not talking C-tech-talk, I am a statistician, not a programmer :roll: )
2) Is anyone familiar with this problem?
3) Does it occur on other sparcs?
4) Has anyone the foggiest idea how to correctly set the hardware clock in the kernel (till know I found out that I should enable the Mostek driver, however it also mentions to set "enhanced real time clock support" in character devices, but the "enhanced real time clock support" is unfortunately not mentioned anywhere in the kernel)
5) Does the ultra sparc 5 have two clock devices? In other words how does it come that OpenBSD sees another time&date than Debian or Gentoo.

hope someone can help me.

grtz Yoda2
Top
Kumba
Retired Dev
Retired Dev
User avatar
Posts: 393
Joined: Tue Jul 16, 2002 2:43 am
Location: Sigma 957
Contact:
Contact Kumba
Website

  • Quote

Post by Kumba » Mon Oct 28, 2002 9:20 am

I've never used iptables, but as far as your clock problem, when I've tried booting FreeBSD or NetBSD (before I tried gentoo linux), I'd also get funny errors regarding the clock.

FreeBSD 5.0-CURRENT/sparc64 simply informed me that the clock was invalid, check and reset the date, then it spat out about 50 lines of assembler garbage, and the whole machine froze.

NetBSD did roughly the same thing as far as the Clock, but after informing me the clock was out of date, it then asked what terminal would I like to use, and then the whole machine froze up.

I never even bothered to try OpenBSD, but I think this is some kinda glitch with all of the BSDs. I was able to boot up the existing Solaris install, and the clock was correctly set. After getting Gentoo installed, the clock also reported correct time.

--Kumba
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Top
Post Reply

2 posts • Page 1 of 1

Return to “Gentoo on Sparc”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy