LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2005, 12:22 PM   #1
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Rep: Reputation: 15
My Slackwarebox won't masqerade


I'm running Slackware 10.0 as server but my lan cant connect internet. (
I have used Guardog and Guidedog to install firewall/masquerad and everything works fine from the server but from lan it's just possible to reach the server.

I checked route...

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 * 255.255.255.0 U 0 0 0 eth1
80.68.113.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 80.68.113.1.kar 0.0.0.0 UG 0 0 0 eth0


and lsmod...

ipt_MASQUERADE 1304 2 (autoclean)
iptable_nat 15438 3 (autoclean) [ip_nat_irc ip_nat_ftp ipt_MASQUERADE]
ipt_state 504 169 (autoclean)
ip_conntrack 19236 2 (autoclean) [ip_conntrack_irc ip_nat_irc ip_conntrack_ftp ip_nat_ftp ipt_MASQUERADE iptable_nat ipt_state]
iptable_filter 1644 1 (autoclean)
ip_tables 12416 12 [ipt_MARK ipt_REJECT ipt_limit ipt_LOG ipt_mark iptable_mangle ipt_MASQUERADE iptable_nat ipt_state iptable_filter]

Well I dont understand whats wrong and I dont know where to look.... (
 
Old 02-12-2005, 12:29 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
there is script in /etc/rc.d/rc.ipforward

u need to ahve it and enable it


lookout in the "pkgtool" for using that

regards
 
Old 02-12-2005, 04:11 PM   #3
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
Not sure if Slackware is the same as the other distros but on the server try typing
echo 1 > /proc/sys/net/ipv4/ip_forward to turn on IP forwarding for your clients.

Then make sure NAT is enabled using
iptables -t nat -A POSTROUTING -o interface_name -j MASQUERADE

Add the appropriate default gateways to the server and clients.
 
Old 02-12-2005, 05:06 PM   #4
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Original Poster
Rep: Reputation: 15
Tanks very much for the help but nothing work...

If I run:
/etc/rc.d/rc.ip_forward restart
linus tells me:
Disabling IPv4 packet forwarding.
Activating IPv4 packet forwarding.

The script does:
# Start IP packet forwarding:
ip_forward_start() {
if [ -f /proc/sys/net/ipv4/ip_forward ]; then
echo "Activating IPv4 packet forwarding."
echo 1 > /proc/sys/net/ipv4/ip_forward
fi

There maybe are somthing else..?!?!

Is there something else I shall look at??
 
Old 02-12-2005, 06:34 PM   #5
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
Did you make sure the clients have a valid DNS resolver configured in /etc/resolv.conf?

Can you ping by IP address?

I just noticed in your routing table, why is the default gateway listed as 80.68.113.1.kar? Notice the kar after the 1.
 
Old 02-13-2005, 05:37 AM   #6
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Original Poster
Rep: Reputation: 15
The clients are Win Xp, Win 98 Mandrake and Slackware...
They are not changed since they run at my Mandrake-server which I have run in a couple of years..
I run DHCP at eth0 from my ISP karlsborg... therefor the .kar
I dont know if it make some sense and how I can remove it. I'll look at that.
 
Old 02-13-2005, 07:12 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
run

traceroute yahoo.com

from ur client machine and post the O/P

regards
 
Old 02-14-2005, 09:01 AM   #8
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Original Poster
Rep: Reputation: 15
hmm.. when I dont have access to the linuxclients, is it possible to run traceroute from windows... ??
from windowsclient I can ping the server, both eth0 and eth1 but I cant ping anything else..
 
Old 02-14-2005, 09:06 AM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
for windows run


tracert yahoo.com
 
Old 02-14-2005, 11:19 AM   #10
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Original Poster
Rep: Reputation: 15
It does nothing.. it looks like it dont se any dns-server.
if I run tracert 80.68.113.230 it gives me som lines but if I run tracert www.something.something it tells (translated from swedish)
It wasnt able to consider target hostname kruthuset.se.
 
Old 02-14-2005, 11:26 AM   #11
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
i am sure that u have a problem with ur DNS

see thew O/P of

ipconfig on windows

check ur DNS settings nad firewall if any

regards
 
Old 02-14-2005, 11:40 AM   #12
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Original Poster
Rep: Reputation: 15
If I ping from the server:
www.passagen.se -> ok
80.68.226.133 -> ok
from client:
www.passagen.se -> unknown host
80.68.226.133 -> timeout

It shouldnt give timeout if it just was a missing dns-server?!?
 
Old 02-14-2005, 11:46 AM   #13
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Original Poster
Rep: Reputation: 15
How can I se the dns-server in slackware i get from dhcp??
Do I have to install a local dnsserver if I use this server as dnsserver in client??
 
Old 02-14-2005, 11:52 AM   #14
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
what is the IP of ur internet gateway??
 
Old 02-14-2005, 11:53 AM   #15
PeO
Member
 
Registered: Nov 2002
Location: Karlsborg/Sweden
Distribution: Slackware 13.1, Mint, Ubuntu, Linux since ~1998
Posts: 60

Original Poster
Rep: Reputation: 15
Its 80.68.113.1
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:28 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