View previous topic :: View next topic |
Author |
Message |
felixo Tux's lil' helper

Joined: 31 Mar 2004 Posts: 88
|
Posted: Sat Feb 05, 2005 4:17 am Post subject: PPPOE and IPTABLES |
|
|
Hello all, I followed this howto for an small office router:
http://www.gentoo.org/doc/en/home-router-howto.xml
I followed most the directions except I used rp-pppoe instead of net.ppp0
Everything went well, but I have a few problems:
First Iptables was not working at all. I had to flush all the rules and tables and do this command to route the connection to all the computers:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
I am aware that this is not blocking any ports, so I would like some advice from you guys as to what rules I should be setting and how I should be setting them. I figured the rules in the router howto are good, but I should just change all references in iptables of eth1 to ppp0?
Also, for some reason ntpd wants to start before the internet connection is made, how can I alter this at boottime?
Thanks for your help! |
|
Back to top |
|
 |
srlinuxx l33t


Joined: 22 Nov 2003 Posts: 627
|
Posted: Sat Feb 05, 2005 6:57 am Post subject: |
|
|
Here's for your ntpd problem. Make sure your /etc/init.d/ntpd has something to this effect in there.
depend() {
need net
use dns logger
}
and here's for your iptables thing. It's a pretty good little ole script, I used it for a while. Edit it for your specifics.
And yeah, I had to use ppp0 for the internet interface, also on adsl using rp-ppoe _________________ --You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots |
|
Back to top |
|
 |
felixo Tux's lil' helper

Joined: 31 Mar 2004 Posts: 88
|
Posted: Mon Feb 07, 2005 7:31 am Post subject: |
|
|
thanks, ill look at it :D |
|
Back to top |
|
 |
felixo Tux's lil' helper

Joined: 31 Mar 2004 Posts: 88
|
Posted: Mon Feb 07, 2005 7:34 am Post subject: sshd question |
|
|
sshd[PID]: reverse mapping checking getaddrinfo for somehost.com failed - POSSIBLE BREAKIN ATTEMPT!
what do I make of this, and what should I do? |
|
Back to top |
|
 |
nightblade Guru


Joined: 20 Jul 2004 Posts: 368 Location: back from SE Asia
|
Posted: Mon Feb 07, 2005 1:44 pm Post subject: Re: sshd question |
|
|
felixo wrote: | sshd[PID]: reverse mapping checking getaddrinfo for somehost.com failed - POSSIBLE BREAKIN ATTEMPT!
what do I make of this, and what should I do? |
It means that your server received a request from an IP address whose reverse dns did not match the name that the client has presented.
In any case, break-in attempts against ssh are very common, but as long as you enforce strong passwords (or, even better, certificates) there is not much to worry about. _________________ In God we trust. All the others must provide a valid X.509 certificate |
|
Back to top |
|
 |
felixo Tux's lil' helper

Joined: 31 Mar 2004 Posts: 88
|
Posted: Mon Feb 28, 2005 6:22 am Post subject: |
|
|
[quote="srlinuxx"]Here's for your ntpd problem. Make sure your /etc/init.d/ntpd has something to this effect in there.
depend() {
need net
use dns logger
}
[/quote]
both my ntpd and ntp-client scripts have what you stated above, should it also depend on rp-pppoe? I dont use net.pppoe but rather rp-pppoe with rc-update.... |
|
Back to top |
|
 |
|