Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PPPOE and IPTABLES
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
felixo
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2004
Posts: 88

PostPosted: Sat Feb 05, 2005 4:17 am    Post subject: PPPOE and IPTABLES Reply with quote

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
View user's profile Send private message
srlinuxx
l33t
l33t


Joined: 22 Nov 2003
Posts: 627

PostPosted: Sat Feb 05, 2005 6:57 am    Post subject: Reply with quote

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
View user's profile Send private message
felixo
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2004
Posts: 88

PostPosted: Mon Feb 07, 2005 7:31 am    Post subject: Reply with quote

thanks, ill look at it :D
Back to top
View user's profile Send private message
felixo
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2004
Posts: 88

PostPosted: Mon Feb 07, 2005 7:34 am    Post subject: sshd question Reply with quote

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
View user's profile Send private message
nightblade
Guru
Guru


Joined: 20 Jul 2004
Posts: 368
Location: back from SE Asia

PostPosted: Mon Feb 07, 2005 1:44 pm    Post subject: Re: sshd question Reply with quote

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
View user's profile Send private message
felixo
Tux's lil' helper
Tux's lil' helper


Joined: 31 Mar 2004
Posts: 88

PostPosted: Mon Feb 28, 2005 6:22 am    Post subject: Reply with quote

[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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum