Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam, skonfigurowałem openvpn tak jak na tej stronie: https://community.openvpn.net/openvpn/wiki/IPv6. Klient otrzymuje adres ipv6 ale ping działa tylko do bramy domyślnej a do internetu już nie.
W sysctl właczyłem to: net.ipv6.conf.all.forwarding=1
Konfiguracja openvpn:
local 1.2.3.4 port 80 dev tun tun-ipv6 auth SHA512 cipher AES-256-CBC ca ca.crt cert vps.crt key vps.key dh dh4096.pem comp-lzo topology subnet client-to-client client-cert-not-required username-as-common-name keepalive 10 120 user nobody group nogroup persist-key persist-tun verb 3 plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so login log-append /var/log/openvpn.log server 192.168.128.0 255.255.248.0 ifconfig-pool-persist ipp.txt push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 208.67.222.222" push "dhcp-option DNS 208.67.220.220" server-ipv6 2001:5100:0201:1000:0001::/64 push "route-ipv6 2001:5100:0201:1000::1/64" push "route-ipv6 2000::/3"
W ip6tables skasowałem wszystkie reguły.
Offline
Routing już był ustawiony
ip -6 route show
2001:5100:0201:1000::1 dev eth0 metric 1024 2001:5100:0201:1000::/64 dev eth0 proto kernel metric 256 2001:5100:0201:1000::/64 dev eth0 metric 1024 fe80::/64 dev eth0 proto kernel metric 256 default via 2001:5100:0201:1000::1 dev eth0 metric 1024
Zamiast tego włączyłem NAT i działa
IPV6_ADDR=fdae:2439:e36f::/64 ip6tables -A INPUT -p tcp --dport 80 -j ACCEPT ip6tables -t nat -A POSTROUTING -s $IPV6_ADDR -o eth0 -j MASQUERADE ip6tables -A FORWARD -s $IPV6_ADDR -i tun0 -o eth0 -j ACCEPT ip6tables -A FORWARD -d $IPV6_ADDR -i eth0 -o tun0 -j ACCEPT
oraz w konfiguracji openvpn zmieniłem:
server-ipv6 fdae:2439:e36f::/64 push "route-ipv6 fdae:2439:e36f::/64" push "route-ipv6 2000::/3"
Offline
Time (s) | Query |
---|---|
0.00010 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00093 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.191.189.124' WHERE u.id=1 |
0.00080 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.191.189.124', 1732558286) |
0.00045 | SELECT * FROM punbb_online WHERE logged<1732557986 |
0.00047 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=29622 AND t.moved_to IS NULL |
0.00007 | SELECT search_for, replace_with FROM punbb_censoring |
0.00163 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=29622 ORDER BY p.id LIMIT 0,25 |
0.00081 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=29622 |
Total query time: 0.0053 s |