Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-06-2004, 08:04 PM   #1
LQ Newbie
Registered: Nov 2003
Posts: 28

Rep: Reputation: 15
can only access linux box from within network

I'm having trouble with my slackware 10 linux box which acts as a router for the rest of my network (2 NICs). All of the services on it work perfectly from my other computer (xp home) on the network but i can't access anything from outside of it- http doesnt work, i can't send email from the network. I can access websites and aim and such. I'm using the simple firewall configuration rc.firewall-2.4 script that comes with the ip-masquerade howto. If it means anything, when i try to use the more secure version (rc.firewall-2.4-stronger), i get the error message:

Starting mysqld daemon with databases from /var/lib/mysql
/usr/sbin/nmbd -D
Starting gpm: /usr/sbin/gpm -m /dev/mouse -t imps2
Starting Network...
SIOCADDRT: Invalid argument
IPv4 forwarding initialized.
usage /etc/rc.d/rc.ip_forward start|stop|restart
Loading the firewall ruleset...
: bad interpreter: No such file or directory/bin/sh

and nothing starts.

Is this a firewall configuration problem? It looks like the ports are open:

output of nmap

nmap localhost

Starting nmap 3.50 ( ) at 2004-08-06 15:50 EDT
Interesting ports on localhost (
(The 1644 ports scanned but not shown below are in state: closed)
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
37/tcp open time
53/tcp open domain
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
113/tcp open auth
139/tcp open netbios-ssn
143/tcp open imap
587/tcp open submission
631/tcp open ipp
901/tcp open samba-swat
953/tcp open rndc

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
git-net * U 0 0 0 eth1 * U 0 0 0 eth0
loopback * U 0 0 0 lo
default ip68-100-30-1.d UG 0 0 0 eth0

I'm not sure if these problems are related or not. Thanks for any help you can give!
Old 08-06-2004, 08:58 PM   #2
bruno buys
Senior Member
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
I can be very wrong, but isn't this line saying that /bin/sh isn't the right path to bash?

: bad interpreter: No such file or directory/bin/sh


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
Access Win32 PC Anywhere from a Linux Box Donald1000 Linux - Software 1 11-19-2002 11:25 AM
How do I access files on Win box from Linux box zanew Linux - Networking 5 06-12-2002 12:58 PM
Can't access my linux box, help PLEASE! killjoy Linux - Networking 3 05-06-2002 08:35 PM
Win2000 can't access Linux Box jonfa Linux - Networking 6 05-06-2002 01:59 PM
Internet access for Linux box in Win Network mmvaldez Linux - Networking 3 10-06-2001 07:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:31 AM.

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