Rutiranje za genmask kako ?

Sve u vezi mreža i povezivanja na Internet

Moderator: Urednik

Post Reply

offline

Posts: 8
Joined: 15 Feb 2012, 16:26

Post Napisano: 29 Feb 2012, 03:19


Postoji li neki nacin da rutiram saobracaj izmedju 255.255.255.0 (default-na na slacku) i 255.255.255.255 (kod pptp konekcije)

Naime kada se konektujem na pptp kroz m$win, imam saobracaj ka zeljenim adresema kroz deafult gw koji sam dobio konektovanje, ali gubim mogucnost da izadjem na www. (sto mi nije bitno)

Dok kada se konektujem kroz slack, dobijem ip adresu za ppp0 interfejs, rucno mu dodelim jos jedan default gw koji mu pripada sa genmask koji imam na ppp0, jedini pristup pptp mrezi imam kroz ping -I ppp0 xx.xx.xx.xx, dok mi ssh, cifs.mount itd nemaju prolaz ka xx.xx.xx.xx. (ako mu pak delete-nem defaultni gw koji vucem sa rutera gubim i ppp0 konekciju)

Kada sam pogleadao route PRINT u kroz cmd na m$win-u vidim da je kod njega rutiranje nesto kompleksnije nego na slacku.
(trenutno mi je ugasen m$win da mogu da prikazem izlaz iz njegovog rutiranja, ali to je njegovo defaultno rutiranje)

Razlike su koliko sam video u genmasku kod slack-a (255.255.255.0) i m$win-a (255.255.255.255)

Postoji li neka mogucnost povezivanja genmaska, a da ne idem potpunim izmenama u tabeli rutiranja (prepisivanjem m$win-ovog) ?

Hvala



Administrator
Administrator
offline
User avatar

Posts: 4108
Joined: 04 Feb 2011, 20:32
Location: Beograd
Contact:

Post Napisano: 29 Feb 2012, 16:42


Kako pokrećeš pptp konekciju na Slacku i gde si postavio parametre? Kako znaš da ping prolazi i ka kojoj adresi? Imam utisak da tražiš zeca u pogrešnom grmu. :)



offline

Posts: 8
Joined: 15 Feb 2012, 16:26

Post Napisano: 29 Feb 2012, 17:21


Teram ga kroz pppd call pdesavanja_za_koneciju debug, instalirao sam pptp-1.7.1, a valjda i pptpconfig, ukljucio neki tuneling u kernelu (neki tun koji je trazio pptp), podsavanja su u /etc/ppp/peers/pdesavanja_za_koneciju i u /etc/ppp/options.pptp
Ping prolazi ka adresi masine koja se nalazi iza te pptp konekcije, ali samo ako mu navedem interface kroz koji da puca ;)
Ipak mislim da jeste problem sa tim sunetmask-om,



offline

Posts: 8
Joined: 15 Feb 2012, 16:26

Post Napisano: 01 Mar 2012, 19:53


Jednostavno evo ispisa iz ifconfig-a i route-n posle uspostavljanja ppp konekcije:

eth0 Link encap:Ethernet HWaddr 00:09:6b:6d:8f:65
inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:662998 errors:0 dropped:0 overruns:0 frame:0
TX packets:662998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:889968946 (848.7 MiB) TX bytes:889968946 (848.7 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.0.172.70 P-t-P:10.0.4.5 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:276 (276.0 B) TX bytes:102 (102.0 B)

vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:5732 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:183700 (179.3 KiB)

wlan0 Link encap:Ethernet HWaddr 00:1d:7d:42:64:72
inet addr:192.168.1.33 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21d:7dff:fe42:6472/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1905183 errors:0 dropped:0 overruns:0 frame:0
TX packets:1378963 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2432895086 (2.2 GiB) TX bytes:173800310 (165.7 MiB)

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 wlan0
10.0.4.5 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
192.168.4.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

a evo malo i iz tail -f /var/log/debug:

Mar 1 19:35:11 l0adder pppd[16603]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x2d2f338f> <pcomp> <accomp>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [LCP ConfReq id=0x1 <auth chap MS-v2> <magic 0xab04748a>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [LCP ConfAck id=0x1 <auth chap MS-v2> <magic 0xab04748a>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x2d2f338f> <pcomp> <accomp>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [LCP EchoReq id=0x0 magic=0x2d2f338f]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CHAP Challenge id=0x1 <a2fbac34e7e7d7a010e9563904d968ac>, name = "Access_Server"]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CHAP Response id=0x1 <769e6ff364388cf4d65c24cee168657fc000007f5c06080b2584983458cc4670524ff914ebc04cc16d96e003ca2cda5800>, name = "Izbrisao sam kod kopiranja"]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [LCP EchoRep id=0x0 magic=0xab04748a]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CHAP Success id=0x1 "S=2088EA8EF19738332F1A192812D890569FC5B4E9"]
Mar 1 19:35:11 l0adder pppd[16603]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [IPCP ConfReq id=0x1 <addr 10.0.4.5>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [IPCP ConfAck id=0x1 <addr 10.0.4.5>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP ConfReq id=0x1 <mppe -H -M -S -L -D +C>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP ConfReq id=0x1]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP ConfRej id=0x1 <mppe -H -M -S -L -D +C>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP ConfAck id=0x1]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP ConfReq id=0x2 < 17 06 00 01 02 01>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP ConfRej id=0x2 < 17 06 00 01 02 01>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [IPCP ConfNak id=0x2 <addr 10.0.172.70>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [IPCP ConfReq id=0x3 <addr 10.0.172.70>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP ConfReq id=0x3 < 11 05 00 01 01>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP ConfRej id=0x3 < 11 05 00 01 01>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [IPCP ConfAck id=0x3 <addr 10.0.172.70>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP ConfReq id=0x4 < 11 05 00 01 03>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP ConfRej id=0x4 < 11 05 00 01 03>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP ConfReq id=0x5 <predictor 1>]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP ConfRej id=0x5 <predictor 1>]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP ConfReq id=0x6]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP ConfAck id=0x6]
Mar 1 19:35:11 l0adder pppd[16603]: rcvd [CCP TermReq id=0x7]
Mar 1 19:35:11 l0adder pppd[16603]: sent [CCP TermAck id=0x7]

a evo malo i iz tail -25 /var/log/syslog:

eb 29 20:30:41 l0adder pppd[5923]: not replacing existing default route via 192.168.1.1
Feb 29 20:30:41 l0adder pppd[5923]: Cannot determine ethernet address for proxy ARP
Feb 29 20:30:51 l0adder pptp[5925]: anon warn[decaps_hdlc:pptp_gre.c:197]: short read (-1): Input/output error
Feb 29 20:30:51 l0adder pptp[5925]: anon warn[decaps_hdlc:pptp_gre.c:209]: pppd may have shutdown, see pppd log
Feb 29 20:34:24 l0adder pppd[6675]: not replacing existing default route via 192.168.1.1
Feb 29 20:35:26 l0adder pppd[6887]: not replacing existing default route via 192.168.1.1
Feb 29 20:37:04 l0adder pptp[6888]: anon warn[decaps_hdlc:pptp_gre.c:197]: short read (-1): Input/output error
Feb 29 20:37:04 l0adder pptp[6888]: anon warn[decaps_hdlc:pptp_gre.c:209]: pppd may have shutdown, see pppd log
Feb 29 20:38:17 l0adder pppd[7475]: not replacing existing default route via 192.168.1.1
Feb 29 20:52:28 l0adder pptp[7477]: anon warn[decaps_hdlc:pptp_gre.c:197]: short read (-1): Input/output error
Feb 29 20:52:28 l0adder pptp[7477]: anon warn[decaps_hdlc:pptp_gre.c:209]: pppd may have shutdown, see pppd log
Mar 1 00:10:12 l0adder dhcpcd[3540]: terminating on signal 1
Mar 1 00:10:18 l0adder dhcpcd: /sbin/dhcpcd: not running
Mar 1 00:10:27 l0adder last message repeated 5 times
Mar 1 00:13:53 l0adder dhcpcd[16808]: terminating on signal 1
Mar 1 00:13:56 l0adder dhcpcd: /sbin/dhcpcd: not running
Mar 1 00:14:01 l0adder last message repeated 5 times
Mar 1 15:55:31 l0adder pppd[6270]: not replacing existing default route via 192.168.1.1
Mar 1 15:57:16 l0adder pptp[6272]: anon warn[decaps_hdlc:pptp_gre.c:197]: short read (-1): Input/output error
Mar 1 15:57:16 l0adder pptp[6272]: anon warn[decaps_hdlc:pptp_gre.c:209]: pppd may have shutdown, see pppd log
Mar 1 19:35:11 l0adder pppd[16603]: not replacing existing default route via 192.168.1.1



Administrator
Administrator
offline
User avatar

Posts: 4108
Joined: 04 Feb 2011, 20:32
Location: Beograd
Contact:

Post Napisano: 06 Mar 2012, 05:11


Izvini nisam bio u mogućnosti da svraćam na forum ovih dana. Nemam vremena sad da bacim pogled. Ako ti nije problem, postavi pitanje na http://www.linuxquestions.org/questions/slackware-14/. Ako iznađeš neko rešenje molio bih te da postaviš ovde da bi i drugi mogli rešiti ako naiđu na sličan problem.

Btw, nisam imao preterano mnogo iskustva sa pptp, ali mislim da bez konfiguracionih datoteka (sa uklonjenim osetljivim informacijama - tipa user i pass) ne može bog zna šta da se uvidi. Osim da je možda pppd konfiguracija neispravna. Mislim da će ti i na LQ reći isto.



offline

Posts: 8
Joined: 15 Feb 2012, 16:26

Post Napisano: 09 Mar 2012, 16:43


Moja je pretpostavka da time sto sam uspostavio interface ppp0 konfiguracija radi, a prolazio sam i kroz fazu kada nije konektovanje nije ferceralo, ali vremenom parametri su sredjeni.
A evo u chemu je mozda fora, verovatno u konfigurisanju samog pptp servera, sa putty-jem kroz m$win imam super iskustva (sve radi), winscp moze samo da skida fajlove, ali ne i da ih uploaduje, montiranje tj. mapiranje je uspelo samo prvi pu, ne verujem da mi se ip na ruteru nije nije promenio od tad, ali ga nisam gasio, tako da je moguce da mu je IP isti kao i pri prvom mapiranju, pa nece vise da ga mapira, bezmalo javlja kako mu je destination unrechable (ili kao vec), aj p[a cu javiti da li shta sam kako resio, hvla i pozz


Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests