Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
1)Internet Sharing with gentoo; 2)whereis service command
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
net_keeper
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 108
Location: Earth

PostPosted: Tue Jul 08, 2003 6:54 pm    Post subject: 1)Internet Sharing with gentoo; 2)whereis service command Reply with quote

Hy,
I'v finally installed gentoo :D and it wasn't so hard.

I have two problems:
1) I try to write "service network restart" but it's didnt found the service command, where is she?
2)How do I share my internet connection?

Thank for all the people who help me to install....
Eyal :)
Back to top
View user's profile Send private message
djf_jeff
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 174
Location: Quebec

PostPosted: Tue Jul 08, 2003 7:30 pm    Post subject: Reply with quote

The command service can be replaced by

Code:
/etc/init.d/your_service start


For the sharing connection, I recommend you reading :

http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html

and

http://www.tldp.org/HOWTO/Masquerading-Simple-HOWTO/index.html
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Jul 08, 2003 8:25 pm    Post subject: Reply with quote

You could use shorewall to create the gateway (share internet connection). Shorewall is a well-known program, easily configurable, that uses iptables... The other solution would be to handle yourself iptables.
Back to top
View user's profile Send private message
net_keeper
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 108
Location: Earth

PostPosted: Tue Jul 08, 2003 10:33 pm    Post subject: Reply with quote

shorewall? where is it at the emerge?

And i would like it to be DHCP.
I saw at /etc/conf.d/net there is an option to do something with aliases is that mean DHCP?
And how do i configure the gateway DHCP?

Althogh I'm personally prefferd Guarddog


Last edited by net_keeper on Tue Jul 08, 2003 10:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Jul 08, 2003 10:35 pm    Post subject: Reply with quote

net_keeper wrote:
shorewall? where is it at the emerge?

And i would like it to be DHCP.
I saw at /etc/conf.d/net there is an option to do something with aliases is that mean DHCP?
And how do i configure the gateway DHCP?


Code:
# emerge shorewall

It's a firewall, and will need some configuration (you can get sample files at http://www.shorewall.net)

If you need a dhcp server for your gateway, use dhcpd (installed by default)
Back to top
View user's profile Send private message
net_keeper
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jul 2003
Posts: 108
Location: Earth

PostPosted: Tue Jul 08, 2003 10:39 pm    Post subject: Reply with quote

Deathwing00 wrote:
net_keeper wrote:
shorewall? where is it at the emerge?

And i would like it to be DHCP.
I saw at /etc/conf.d/net there is an option to do something with aliases is that mean DHCP?
And how do i configure the gateway DHCP?


Code:
# emerge shorewall

It's a firewall, and will need some configuration (you can get sample files at http://www.shorewall.net)

If you need a dhcp server for your gateway, use dhcpd (installed by default)


Actualy it's on:
emerge net-firewall/shorewall

And still, how can i setup dhcpd for beeing server?
And dont tell me to RTFM because i didnt understand anything.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Jul 08, 2003 10:56 pm    Post subject: Reply with quote

net_keeper wrote:
Deathwing00 wrote:
net_keeper wrote:
shorewall? where is it at the emerge?

And i would like it to be DHCP.
I saw at /etc/conf.d/net there is an option to do something with aliases is that mean DHCP?
And how do i configure the gateway DHCP?


Code:
# emerge shorewall

It's a firewall, and will need some configuration (you can get sample files at http://www.shorewall.net)

If you need a dhcp server for your gateway, use dhcpd (installed by default)


Actualy it's on:
emerge net-firewall/shorewall

And still, how can i setup dhcpd for beeing server?
And dont tell me to RTFM because i didnt understand anything.


iptables does not do dhcp... it's for firewalling and masquerading among others... like your internet sharing ;)

Code:
# emerge dhcp


This one is the dhcp server, you have to configure it by reading

Code:
$ man dhcp


and, after that,
Code:
# rc-update add dhcp default
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