umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Linux, poslužitelj, mreže i sigurnost

Moderator/ica: Moderatori/ce

Avatar
meema
Postovi: 1272
Pridružen/a: 04 vel 2009, 19:50
Spol: Ž
OS: Ubuntu 12.04 + win7
Lokacija: Zagreb
Kontakt:

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la meema »

ne pustim te :D meni tak lijepo s tobom se tipkat :D hehehe

Kod: Označi sve

ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:70:c5:24:ae  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::250:70ff:fec5:24ae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:190 errors:0 dropped:0 overruns:0 frame:0
          TX packets:230 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:36637 (36.6 KB)  TX bytes:34175 (34.1 KB)
          Interrupt:23 Base address:0xa000 

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:378 errors:0 dropped:0 overruns:0 frame:0
          TX packets:378 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:30656 (30.6 KB)  TX bytes:30656 (30.6 KB)

wlan0     Link encap:Ethernet  HWaddr 00:4f:78:00:82:11  
          inet addr:192.168.5.93  Bcast:192.168.5.255  Mask:255.255.255.0
          inet6 addr: fe80::24f:78ff:fe00:8211/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9025 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3547 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4850452 (4.8 MB)  TX bytes:505979 (505.9 KB)

wmaster0  Link encap:UNSPEC  HWaddr 00-4F-78-00-82-11-32-31-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING 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)
... I'm not weird, I'm limited edition ... :hepihepi
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la glaskoncILLa »

u biti da, vjerpovatno je problem sa natom, upisi cat /etc/rc.local
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
meema
Postovi: 1272
Pridružen/a: 04 vel 2009, 19:50
Spol: Ž
OS: Ubuntu 12.04 + win7
Lokacija: Zagreb
Kontakt:

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la meema »

Kod: Označi sve

sudo cat /etc/rc.local
[sudo] password for meema: 
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
exit 0
... I'm not weird, I'm limited edition ... :hepihepi
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la glaskoncILLa »

ok, upisi;

iptables -L
locate iptables | grep bin
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
meema
Postovi: 1272
Pridružen/a: 04 vel 2009, 19:50
Spol: Ž
OS: Ubuntu 12.04 + win7
Lokacija: Zagreb
Kontakt:

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la meema »

Kod: Označi sve

sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Kod: Označi sve

sudo locate iptables | grep bin
/sbin/iptables
/sbin/iptables-restore
/sbin/iptables-save
/usr/sbin/iptables-apply
/usr/sbin/iptables-xml
... I'm not weird, I'm limited edition ... :hepihepi
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la glaskoncILLa »

zanimljivo.. pretpostavljam da mu radi nakon sto upises /sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE?
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
meema
Postovi: 1272
Pridružen/a: 04 vel 2009, 19:50
Spol: Ž
OS: Ubuntu 12.04 + win7
Lokacija: Zagreb
Kontakt:

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la meema »

mislis, kad ponovim ovo:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE

sudo gedit /etc/rc.local
otvoriti ce ti se tekstualni file u kojem pisu neke gluposti koje uopce nemoj citati gdje svaki red pocinje sa #, a u zadnjem redu pise exit 0 bez da pocinje sa #
e sad, dodaj u taj file /sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE izmedju zadnjeg reda koji pocinje sa # i exit 0.
... I'm not weird, I'm limited edition ... :hepihepi
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la glaskoncILLa »

ne, mislim kad upises /sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE u terminal
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Avatar
meema
Postovi: 1272
Pridružen/a: 04 vel 2009, 19:50
Spol: Ž
OS: Ubuntu 12.04 + win7
Lokacija: Zagreb
Kontakt:

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la meema »

zanemari ono kaj je pisalo :D hahaha
upisala sam to u terminal, ne radi...
... I'm not weird, I'm limited edition ... :hepihepi
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: umrezavanja win7+ubuntu 9.04 LAN crossover kabl

Post Postao/la glaskoncILLa »

krasno..
ti upisi;
iptables -L -t nat


on neka upise;
ping 192.168.1.1
ping 213.191.128.8
tracert 213.191.128.8
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Odgovori