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/.
To żaden VPN nie służy do bezpośredniego przekazywania sieci (chyba, że się mylę, przecież są prywatne VPN'y)
http://linux.byexamples.com/archives/187/setting-up-http-proxy-at-console/
Tu masz na temat konfiguracji Proxy z konsoli, musisz postawić serwer Proxy i przesyłać (powinno działać)
Najwyżej mnie zabijesz :D
Fervi
Offline
[quote=fervi]To żaden VPN nie służy do bezpośredniego przekazywania sieci[/quote]
Proszę nie pisz już nic więcej czytałeś co sam wkleiłeś do czego jest push "redirect-gateway def1" wiec przeczytaj i zostaw ten tema innym dzieki
a ja sobie poczytam o
Split tunneling
In some cases, the redirect-gateway parameter is a bit too restrictive. You might want
to add a few routes to local networks and route all other traffic over the VPN tunnel. The
OpenVPN route directive has a few special parameters for this:
net_gateway: This is a special gateway representing the LAN gateway address that
OpenVPN determined when starting. For example, to add a direct route to the LAN
192.168.4.0/24, you would add the following to the client configuration file:
route 192.168.4.0 255.255.255.0 net_gateway
vpn_gateway: This is a special gateway representing the VPN gateway address. If
you want to add a route that explicitly sends traffic for a particular subnet over the
VPN tunnel, overruling any local routes, you would add:
route 10.198.0.0 255.255.0.0 vpn_gateway: This option is used
primarily in TAP-style networks where the VPN gateway address is not known
in advance[/quote]
Offline
No i dało się
ustawiłem statyczne ip tunelu i wpisy
dla serwera
serwer ifconfig 10.8.0.1 10.8.0.2 push "route IPWPL 255.255.255.255"
dla klienta
serwer ifconfig 10.8.0.2 10.8.0.1 route IPWPPL 255.255.255.255
do tego na serwie
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
i teraz ruch na na wp.pl z pierwszego serwera przelatuje na 2 i dalej leci na wp.pl z IP 2 serwera
Offline
Time (s) | Query |
---|---|
0.00007 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00069 | 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='3.133.128.171' WHERE u.id=1 |
0.00057 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.133.128.171', 1732662953) |
0.00045 | SELECT * FROM punbb_online WHERE logged<1732662653 |
0.00061 | DELETE FROM punbb_online WHERE ident='18.220.200.197' |
0.00057 | DELETE FROM punbb_online WHERE ident='3.149.250.19' |
0.00055 | DELETE FROM punbb_online WHERE ident='3.15.228.171' |
0.00056 | SELECT topic_id FROM punbb_posts WHERE id=275622 |
0.00152 | SELECT id FROM punbb_posts WHERE topic_id=26412 ORDER BY posted |
0.00075 | 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=26412 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00121 | 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=26412 ORDER BY p.id LIMIT 25,25 |
0.00080 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=26412 |
Total query time: 0.00844 s |