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 chyba jednak nalog, jak mam wolna chwile to musze grzebac w Debianie a pozniej prosic Was o pomoc.
Tym razem zainstalowalem:
- Host (Jessie)
- VM Virtualbox:
- 2 sieci
- 2 interfejsy
- Ad1 - bridged.
- Ad2 - internal
- pfSense (Guest) na VM VB.
- 2 interfejsy:
- em0 (WAN)
- em1 (LAN)
Korzystalem min z tego tutoriala: http://rumyittips.com/how-to-install-pfsense-in-virtualbox/ i wielu innych.
Rozwiazanie problemu jest tutaj, tylko nie jestem pewien czy do konca dobrze rozumiem.
Your lan got that via dhcp.. That is not something lan is normal gotten from anyway because normally you run dhcpd on pfsense, etc. etc.. and it needs to be static.
If you want to run this for your whole network then do this.. Your box needs 2 interfaces min or smart switch and vlans but then gets way more complicated.
Interface your going to connect to your internet - wan, would be bridge in VB. Your Lan side interface in PC would be bridged in VB.
In your PC that is running vb you would not have any binding to the wan nic.
Your PC would have an IP on the lan side bridge interface in vb..
Your pfsense vm in vb would have virt nic connected to your phy wan interface that is bridged and get your public IP from your ISP or if behind nat some rfc1918 from your gateway/router from your ISP. Your lan side network or lan interface in vb would be some different network that is bridged to your lan side PC interface. This would be connected to your phy switching setup. All other devices would be connected here, wireless AP would be connected here.
Your PC would have IP on this network.. This is what it would use for internet access.
My router - 192.168.0.1
My host - 192.168.0.182
pfSense WAN - 192.168.0.48
Well your host is on the pfsense WAN.. As I showed in the my setup your PC running vm IP should be on the interface that is bridged to pfsense lan and your network - can not be connected to your routers network. Do this your going to need another switch. Can not just have 1 router as your only connection.[/quote]
https://forum.pfsense.org/index.php?action=dlattach;topic=126486.0;attach=96098;image
Caly watek jest tutaj: https://forum.pfsense.org/index.php?topic=126486.0
Zeby filtrowac siec i uzyc "goscia" pfSense jako firewall musze miec 2 interfejsy, to wiem, probowalem na rozne konfigi i ciagle brak dostepu do webConfiguratora.
Jak zestawic takie polaczenie w praktyce?Ostatnio edytowany przez Novi-cjusz (2017-03-04 16:47:40)
------------------------------------------------------------------------------------
"Inveniam viam aut faciam" : I will either find a way, or I shall make one
"Złoto to pieniądz królów, srebro to pieniądz dżentelmenów, barter to pieniądz chłopów ale dług to pieniądz niewolników."
Offline
W moim labie wygląda to tak:
Virtualbox
- VM Ubuntu - interfejs eth0 (dhcp) Internal Network
- VM pfSense - interfejs em0 bridget adapter (WAN), em1 internal Network (LAN)
Wszystko śmiga jak trzeba :)
Offline
coś mi się wydaja ale gdzieś ten temat uż widziałem
]:>
a jak sie logowałeś do webconfiguratora?
a jak skonfigurowałeś interfejsy w pfsense?
Offline
pfSense na VM VB juz mi smiga, teraz musze popracowac nad konfigami.
Na HDD juz mam.
Nastepny krok to pfSense lub OpenSense na KVM.
Zeby cieszyc sie vm pfSense na VB trzeba ustawic na VM VB 2 interfejsy: bridged, host-only. Na vm pfSense em0(WAN) i em1(LAN) adresacja dla em0 z sieci fizycznej, adresacja dla sieci em1 z sieci wirtualnej. To wszystko, i dziala pieknie.
Minusem jest znacznie zwiekszone zuzycie pradu, niestety.
Pozdrawiam.
Ostatnio edytowany przez Novi-cjusz (2017-03-08 19:31:38)
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00005 | SET NAMES latin2 |
0.00131 | 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.145.64.245' WHERE u.id=1 |
0.00062 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.64.245', 1732725084) |
0.00045 | SELECT * FROM punbb_online WHERE logged<1732724784 |
0.00206 | DELETE FROM punbb_online WHERE ident='185.191.171.14' |
0.00049 | SELECT topic_id FROM punbb_posts WHERE id=309214 |
0.00055 | SELECT id FROM punbb_posts WHERE topic_id=29408 ORDER BY posted |
0.00031 | 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=29408 AND t.moved_to IS NULL |
0.00025 | SELECT search_for, replace_with FROM punbb_censoring |
0.00050 | 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=29408 ORDER BY p.id LIMIT 0,25 |
0.00084 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=29408 |
Total query time: 0.00754 s |