LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   My Slackwarebox won't masqerade (https://www.linuxquestions.org/questions/linux-networking-3/my-slackwarebox-wont-masqerade-289352/)

PeO 02-12-2005 12:22 PM

My Slackwarebox won't masqerade
 
I'm running Slackware 10.0 as server but my lan cant connect internet. :o(
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.... :o(

masand 02-12-2005 12:29 PM

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

aznluvsmc 02-12-2005 04:11 PM

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.

PeO 02-12-2005 05:06 PM

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??

aznluvsmc 02-12-2005 06:34 PM

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.

PeO 02-13-2005 05:37 AM

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.

masand 02-13-2005 07:12 AM

run

traceroute yahoo.com

from ur client machine and post the O/P

regards

PeO 02-14-2005 09:01 AM

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..

masand 02-14-2005 09:06 AM

for windows run


tracert yahoo.com

PeO 02-14-2005 11:19 AM

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.

masand 02-14-2005 11:26 AM

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

PeO 02-14-2005 11:40 AM

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?!?

PeO 02-14-2005 11:46 AM

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??

masand 02-14-2005 11:52 AM

what is the IP of ur internet gateway??

PeO 02-14-2005 11:53 AM

Its 80.68.113.1


All times are GMT -5. The time now is 07:15 PM.