PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SuSE 9.0 routet nicht



newton
14.04.04, 21:41
Hallo,
folgende Situation: ein Server, der unter anderem internet fuers lan bereitstellen soll, windows und linuxclients (suse 8.1).

Problem: Kein Internet vom client, obwohl internes netz funktioniert und der server auch ins internet kommt, aber irgendwie klapt das mit dem ip-forwarding nicht.

Folgende Serverkonfiguration:
eth0 am DSL -Modem
eth1 192.168.6.110
gateway 0.0.0.0 -dsl
ip-forwarding enabled (wird in boot.msg auch bestaetigt)

fuer dns und masquerading hab ich dnsmasq 2.6-1 installiert, im folgenden auszuege aus dnsmasq.cong (alle einkommentierten optionen,den rest hab ich fuer bessere lesbarkeit weggeschnitten)
# Configuration file for dnsmasq.
#

# Filter useless windows-originated DNS requests
filterwin2k



# If you want dnsmasq to listen for requests only on specified interfaces
# (and the loopback) give the name of the interface (eg eth0) here.
# Repeat the line for more than one interface.
interface=eth1


# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=192.168.6.1,192.168.6.100,12h


# The following DHCP options set up dnsmasq in the same way as is specified
# for the ISC dhcpcd in
# http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt
# adapted for a typical dnsmasq installation where the host running
# dnsmasq is also the host running samba.
# you may want to uncomment them if you use Windows clients and Samba.
dhcp-option=19,0 # option ip-forwarding off
dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
dhcp-option=45,0.0.0.0 # netbios datagram distribution server
dhcp-option=46,8 # netbios node type
dhcp-option=47 # empty netbios scope.


# Set the limit on DHCP leases, the default is 150
#dhcp-lease-max=150


# Set the cachesize here.
cache-size=500


am client folgende einstellungen:
gateway 192.168.6.110
dnsserver 192.168.6.110

ping an server klapt, ping an dns-server der telekom klapt nicht, aber aus folgendem ping meine ich erkennen zu koennen, das dnsmasq bezueglich adressaufloesung funktioniert:
newton@suse:/home> ping www.web.de
PING www.web.de (217.72.195.42) from 192.168.6.101 : 56(84) bytes of data.
From suse.lan.fli4l (192.168.6.101): icmp_seq=1 Destination Host Unreachable
From suse.lan.fli4l (192.168.6.101) icmp_seq=1 Destination Host Unreachable
From suse.lan.fli4l (192.168.6.101) icmp_seq=2 Destination Host Unreachable

--- www.web.de ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% loss, time 4029ms
, pipe 2

firewall ist noch keine installiert.
die interne netzwerkkarte ist eineISA Karte, ist es moeglich, das es daran liegt ? :confused:

weis vielleicht jemand rat ?

gruss,
newton

MarioH
18.04.04, 20:23
Hallo,

ich hab grad mal bei freshmeat geschaut was dnsmasq so macht. Also, das forwardet und maskiert nur die dns-Request, das funktioniert bei dir auch. Um zu surfen musst du aber auch den restlichen Verkehr maskieren (z.B. http). Das geht bei SuSE am besten mit der SuSE-Firewall, dann brauchst du aber eigentlich auch kein dnsmasq mehr, denn die SuSE-Firewall maskiert alles über ip-Filter-Regeln.

newton
19.04.04, 00:00
Hallo,
Danke erstmal fuer die Info bezueglich dnsmasq.
hab die SuSE Firewall installiert, klapt leider immer noch nicht. Was dnsmasq betrift, so scheint es mir doch von noeten zu sein. ohne dnsmasq:
$ping www.web.de

ohne reaktion (hab nicht ewig gewartet)

mit dnsmasq:
$ ping www.web.de
PING www.web.de (217.72.195.42) from 192.168.6.101 : 56(84) bytes of data.

--- www.web.de ping statistics ---
17 packets transmitted, 0 received, 100% loss, time 16014ms


aber es hat das grundlegende problem nicht geaendert. Kennt jemand snort ? Welcher Parameter wuerde mir da Helfen ? Welche Info waeren noch nuetzlich, bzw. welche logs koennten mir weiterhelfen ?

Gruss,
newton

klemens
19.04.04, 00:14
Hast in der SuSEfirewall2 auch Masquerading aktiviert?
ppp0 externes Interface
eth1 internes Interface

Beim Client gibst den gleichen DNS-Server an wie beim Router selbst (steht in /etc/resolv.conf bei bestehender Verbindung drinnen)