Dokimase:
1)
Code: Select all
echo 1 > /proc/sys/net/ipv4/ip_forward
kai
Code: Select all
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
2)
3)
/etc/named.conf:
options {
directory "/var/named";
cleaning-interval 120;
statistics-interval 0;
notify no;
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "." in {
type hint;
file "root.hint";
};
zone "mrouter" {
type master;
file "/var/named/mrouter.hosts";
};
EOF
/var/named/127.0.0.zone:
$TTL 2D
@ IN SOA localhost. root.localhost. (
42 ; serial (d. adams)
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS localhost.
1 IN PTR localhost.
EOF
/var/named/localhost.zone:
$TTL 2D
@ IN SOA @ root (
42 ; serial (d. adams)
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS @
IN A 127.0.0.1
EOF
/var/named/mrouter.hosts:
$ttl 38400
mrouter. IN SOA bernd. bernd.pnd. (
2003051402
10800
3600
604800
38400 )
mrouter. IN NS bernd.
wsockhost.mrouter. IN A 192.168.2.1
192.168.2.1.mrouter. IN PTR wsockhost
EOF
4)
/etc/ppp/options:
noauth
local
modem
proxyarp
debug
ms-dns 192.168.1.1 # DNS-Server resolvs "wsockhost.mrouter"
192.168.1.100:192.168.1.200 # IP-Addresses gia host and kinhto
5)
6)
Code: Select all
rfcomm connect 2 <MAC-ADDRESS apo to kinhto soy> 2
thn MAC-ADDRESS apo to kinhto soy---thn briskeis me to hcitool scan
AYTA.... Dokimase kapoion browser toy kinhtoy soy na deis an ola ok...
Sto nokia moy doyleuoun mia xara ayta....
