Forum » Operacijski sistemi » OpenBSD 3.5 + XS26
OpenBSD 3.5 + XS26
Rumko ::
en problemcek imam ... ne uspe mi vzpostavit tunela oz. routinga ... svoj ip lahko pingam, ampak ne morm pa niti ip od popa pingat ne kogarkol druzga ... skripta ki sem jo uporabil:
MYIPv4="x.x.x.x" # Moj IPv4 naslov
XSIPv4="193.87.16.45" # PoP-pv IPv4 naslov
MYIPv6="3ffe:y:z::1" # moj IPv6 naslov
XSIPv6="3ffe:80ef::"
TUNLIF="gif0
ifconfig $TUNLIF deletetunnel
ifconfig $TUNLIF giftunnel $MYIPv4 $XSIPv4
KillProcess()
{
PID=`ps axww | grep $1 | grep -v grep | awk '{ print $1;}'`
if [ ! -z "${PID}" ]; then
kill $PID
fi
}
list=`ifconfig $TUNLIF | grep inet6 | awk '{print $2}' | grep -v '^fe80'`
for ipv6address in $list
do
ifconfig $TUNLIF inet6 $ipv6address delete
done
ifconfig $TUNLIF inet6 $MYIPv6 $XSIPv6 prefixlen 128 alias
ifconfig $TUNLIF up
route flush -inet6
route delete -inet6 default
route add -inet6 default -interface $XSIPv6
route6d
sysctl -w net.inet6.ip6.forwarding=1 # ipv6_forwarding enabled
sysctl -w net.inet6.ip6.accept_rtadv=0 # routed must disable any router advertisement incoming
KillProcess rtadvd
rtadvd ep0
kaj sem se pozabil dodati v to skripto?
MYIPv4="x.x.x.x" # Moj IPv4 naslov
XSIPv4="193.87.16.45" # PoP-pv IPv4 naslov
MYIPv6="3ffe:y:z::1" # moj IPv6 naslov
XSIPv6="3ffe:80ef::"
TUNLIF="gif0
ifconfig $TUNLIF deletetunnel
ifconfig $TUNLIF giftunnel $MYIPv4 $XSIPv4
KillProcess()
{
PID=`ps axww | grep $1 | grep -v grep | awk '{ print $1;}'`
if [ ! -z "${PID}" ]; then
kill $PID
fi
}
list=`ifconfig $TUNLIF | grep inet6 | awk '{print $2}' | grep -v '^fe80'`
for ipv6address in $list
do
ifconfig $TUNLIF inet6 $ipv6address delete
done
ifconfig $TUNLIF inet6 $MYIPv6 $XSIPv6 prefixlen 128 alias
ifconfig $TUNLIF up
route flush -inet6
route delete -inet6 default
route add -inet6 default -interface $XSIPv6
route6d
sysctl -w net.inet6.ip6.forwarding=1 # ipv6_forwarding enabled
sysctl -w net.inet6.ip6.accept_rtadv=0 # routed must disable any router advertisement incoming
KillProcess rtadvd
rtadvd ep0
kaj sem se pozabil dodati v to skripto?
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | IPv6 tunnelbrokerOddelek: Omrežja in internet | 1329 (1068) | boogie_xlr |
» | Internet dela ali ne dela (lnux)Oddelek: Operacijski sistemi | 1955 (1624) | root |
» | Kako v linuxu naštimat dva IP naslova na eni mrežni karticikartici?Oddelek: Operacijski sistemi | 1270 (1179) | Bakunin |
» | psybnc ipv6 linuxOddelek: Programska oprema | 1212 (1109) | haha |
» | IPv6 on Linux RH9Oddelek: Omrežja in internet | 2334 (1883) | Gandalfar |