LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-30-2006, 05:45 PM   #1
conrado
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Rep: Reputation: 15
Slack as network server?


I,m running slack current with kernel 2.6.16.18 I,m connected to a cablemodem trought ethernet, I had 2 NIC in this box the one that is working with the cablemodem is configure as DHCP the other one, the one that supposed to give internet to the rest of my network is configure as static IP, this is my ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:08:C7:89:A2:92
inet addr:200.88.56.102 Bcast:200.88.56.255 Mask:255.255.255
.0
inet6 addr: fe80::208:c7ff:fe89:a292/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78704 errors:0 dropped:0 overruns:0 frame:0
TX packets:735 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5217065 (4.9 MiB) TX bytes:84488 (82.5 KiB)
Interrupt:11

eth1 Link encap:Ethernet HWaddr 00:08:A1:73:6BB
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::208:a1ff:fe73:6bdb/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1121 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:79095 (77.2 KiB) TX bytes:588 (588.0 b)
Interrupt:11 Base address:0x2400

I already did some masquerade with iptables, and enable rc.ip_forward from /etc/rc.d and my network still can,t connect to internet. If I ping the address 192.168.0.1 it does respond at me, but still can,t connect any help?
 
Old 05-30-2006, 06:11 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Try generating a masquerading/nat firewall script that you install on your server. Try http://www.slackware.com/~alien/efg/ where I have Easy Firewall Generator installed. Go through the screens, fill out your configuration and save the generated script as
Code:
/etc/rc.d/rc.firewall
and make it executable:
Code:
chmod +x /etc/rc.d/rc.firewall
.
If an executable file with that name exists, Slackware will automatically run it with the "start" parameter on boot. That should get your firewall going.

If you run a DHCP server on that server, your client computers don't need static IP's. The Slackware dnsmasq package offers a simple easy to setup DNS/DHCP server for small networks.

Eric
 
Old 05-30-2006, 06:24 PM   #3
conrado
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Original Poster
Rep: Reputation: 15
The problem is, if I delete all entry in rc.inet1.conf for eth1 (the second NIC) and supposed to put dhcp as "yes" when I reboot or reboot inet1 the second nic eth1 stay without IP, so where I supposed to ping? it should at least get a dinamic IP but it doesn,t. And If I put at static IP to eth1 the network still can,t connect to my box even if I put that IP as gateway.
 
Old 05-30-2006, 06:27 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Of course you have to give eth1 a static IP address. It is the IP address for your internal server and it could be running an internal DHCP service itself. So, your solution of giving it 192.168.0.1 is good.
Only the external (internet-facing) card gets it's IP address from the ISP's DHCP server.

Eric
 
Old 05-30-2006, 06:41 PM   #5
conrado
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Original Poster
Rep: Reputation: 15
Yes but still isn,t working, with either of the firewall I use from the site you gave me, I try to configure the rest of clients to use a static IP also and 192.168.0.1 as gateway, but still no luck....

I don,t know what,s happening.
 
Old 05-30-2006, 07:09 PM   #6
conrado
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware-Current
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks my network is now working, I check out the post configuring slack as gateway and that helped a lot, a linux box still doesn,t connect but the rest of machines win xp connect well.

thanks...
 
Old 05-31-2006, 02:50 AM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
Thanks my network is now working, I check out the post configuring slack as gateway and that helped a lot, a linux box still doesn,t connect but the rest of machines win xp connect well.
Are you saying that your router can not connect to the internet but the computers behind it can connect to the internet though it? I think you might have done something strange in your iptables.

Please post the output of 'iptables -L'

regards,
...drkstr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 09:52 PM
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 05:45 AM
help, network (2 PC with Slack) miloc Linux - Networking 2 10-06-2004 08:37 PM
Slack 10, network help abrahamfroman Linux - Newbie 6 08-05-2004 09:01 PM
slack 9.0 setin up the network jphillip Slackware - Installation 1 01-18-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration