Willkommen ~Gast!
Registrieren || Einloggen || Hilfe/FAQ || Staff
Probleme mit der Registrierung im Forum? Melde dich unter registerEin Bild.
Autor Beitrag
000
05.09.2005, 19:27
default



ich hab da mal was vorbereitet ....

routing problem

folgendes setup
Quellcode:[--------------]        "gruen"           "rot"     eth0 ( 10.0.0.1 manuell )
|"nelke"       |           [----------------]         [------------]
|192.168.53/24 |---------->|"badpacket"ipcop|-------->| "notebook" |
[--------------]           [----------------]         [------------]
                     192.168.53.1       10.0.1.1             | eth2/wifi0
                                        manuell              | 192.168.2.43 ueber dhcp
                                                             |
                                                             |
                                                             y 192.168.2.1/255.255.255.0
                                                     [--------------------]
                            INTERNET  <--------------| "spaten" axs point |
                                                     [--------------------]

in worten,
nelke is mein daheimnetz, da ich noch kein inet anschluss habe, aber irgendein nachbar, dachte ich wir sharen das fair.
problem: die box die routet faehrt ipcop (das is > fli4l ), aber ich krieg die iptables rulesets/routes nicht gerissen dass ich von da halt packetfluss haette der mir was bringen koennte :\

"nelke"
Quellcode:route
Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.53.0    *               255.255.255.0   U     0      0        0 eth0
default         badpacket.nelke 0.0.0.0         UG    0      0        0 eth0
"badpacket"
Quellcode:route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.53.0    *               255.255.255.0   U     0      0        0 eth0
192.168.47.0    *               255.255.255.0   U     0      0        0 eth1
10.0.0.0        *               255.255.0.0     U     0      0        0 eth2
default         10.0.0.1        0.0.0.0         UG    0      0        0 eth2
"notebook"
Quellcode:eth0 10.0.1.1/255.255.0.0
wifi0/eth2 192.168.2.43/255.255.255.0

route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.0     *               255.255.255.0   U     0      0        0 eth2
10.0.1.0        *               255.255.0.0   U     0      0        0 eth0
default         192.168.2.1     0.0.0.0         UG    0      0        0 eth2
hier laeuft:

Quellcode:iptables -F
iptables -t nat -F
iptables -t mangle -F
iptables -P INPUT DROP
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
nun denn

badpacket -ping-> notebook (eth0)
ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1): 56 data bytes
64 bytes from 10.0.0.1: icmp_seq=0 ttl=64 time=2.491 ms

badpacket -ping-> notebook (wifi0/eth2)
ping 192.168.2.43
PING 192.168.2.43 (192.168.2.43): 56 data bytes
64 bytes from 192.168.2.43: icmp_seq=0 ttl=64 time=1.943 ms

badpacket -ping-> spaten (whatever)
ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
64 bytes from 10.0.1.1: Destination Host Unreachable
Vr HL TOS Len ID Flg off TTL Pro cks Src Dst Data
4 5 c0 7000 70e8 0 0000 40 01 5b7b 10.0.1.1 10.0.1.1

also hier is ein bug
der is erstmal wichtig,

desweiteren

nelke -ping-> badpacket (eth2)
ping 10.0.1.1
PING 10.0.1.1 (10.0.1.1): 56 data bytes
64 bytes from 10.0.1.1: icmp_seq=0 ttl=64 time=42.9 ms

nelke -ping-> notebook (eth0)
ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1): 56 data bytes
--- 10.0.0.1 ping statistics ---
25 packets transmitted, 0 packets received, 100% packet loss

das kann man anpacken wenn badpacket--notebook--spaten-->INTERNET geht

und ich wollte kein proxyranz auf notebook fahren

wer da ne smarte idee hat, kommen lassen

ich hoff mal das formatting is nicht vollstaedig gefickt

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
001
05.09.2005, 22:34
Master Pegasus



Ich finds komisch, dass badpacket 10.0.1.1 ist und notebook 10.0.0.1, funktioniert denn der ping von notebook zu badpacket? Wenn nein, probier mal als IPs 10.0.0.* oder 10.0.1.* zu nehmen und keine Mischung aus beidem. Falls es doch geht probier mal als iptables Regel auf weiterleitenden Rechnern
iptables -t nat -A POSTROUTING -o <ausgehendes Interface> -j MASQUERADE.
Wenn das alles nix hilft meld dich nochmal, dann schau ichs mir nochmal genauer an.

--

Was immer auch geschieht: Nie sollt Ihr so tief sinken, von dem Kakao, durch den man Euch zieht, auch noch zu trinken! -- Erich Kästner

zum Seitenanfang zum Seitenende Profil || Suche
002
06.09.2005, 01:07
default



laeuft ja ueber die netmask, das geht daher

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche
003
06.09.2005, 03:12
default



ich habs gerockt, zwar anders als ich wollte, aber ich hab nun internet :)

Quellcode:Host                                Loss%   Snt   Last   Avg  Best  Wrst StDev
1. 192.168.53.1                      0.0%    15    0.1   0.3   0.1   0.5   0.1
    192.168.53.26
2. 192.168.53.26                     0.0%    15    2.8   4.4   0.5   9.6   2.7
    192.168.2.1
3. 192.168.2.1                       0.0%    14   12.0  13.1   3.7  20.7   4.0
    bsn1.ham.qsc.de
4. core1.ham.qsc.de                  0.0%    14   14.5  13.5  11.9  17.2   1.5
5. core1.dus.qsc.de                  7.1%    14   31.7  31.3  21.1  82.7  16.7
6. core2.fra.qsc.de                  0.0%    14   63.0  43.4  22.5 191.4  44.8
7. de-cix.ffm.plusline.net           0.0%    14   40.2  34.7  23.6  93.5  18.3
8. heise1.f.de.plusline.net          0.0%    14  143.7  38.4  23.6 143.7  31.8
9. redirector.heise.de               0.0%    14   46.8  30.2  25.3  46.8   5.4
als ref diene dem suchenden
man iptables
&
http://www.netfilter.org/documentation/HOWTO/netfilter-double-nat-1.html

--

Du musst Deine Bandbreite verbreitern, damit du breiter wirst von der Bandbreite her und ein breiteres Publikum ansprechen kannst.

zum Seitenanfang zum Seitenende Profil || Suche