Subject: Re: [qubes-devel] Pfsense with IDS/IPS working as HVM.
Date: Wed, 13 Jan 2016 21:19:43 +0100
From: Black Consult <
in...@blackconsult.nl>
To: Outback Dingo <
outbac...@gmail.com>
Yes, i can run without the default firewallvm (sys-firewall), but i need
sys-net as backend to connect the WAN side of PfSense as the outgoing
gateway (the sys-net handles actually the real ethernet connection, if
i'm not wrong and has the 137.10.1.1 gw).
But it routes NOT all traffic, because i choose another network for the
LAN side of PfSense and not the standard 137.10.2.*, so the fedora-vm's
can't connect yet to pfsense.
Cause somehow at first i didn't get fedora-23 templates get working to
connect to pfsense, i choose lubuntu as a HVM as a PoC to get a running
pfsense. That was the main goal.
I am looking for other options. I guess i better stick with fedora, and
have to try again or try another setup or make a clone. Comments are
welcome.
For me it was a Poc and to see if pfsense would run inside Qubes. The
default firewall from Qubes was not satisfying for me.
> First curious why pfsense and not OPNSense, however thats just
> preference on my part.
Hmmmm, i noticed changes in PfSense a while ago, but was not aware of
this fork and the rest of it as mentioned on the OPNSense site.
I am looking into it.
> Second, are all your vms not routing through this pfsense firewallvm ?
No, not yet. That would be cool. Maybe Qubes dev also likes this...?
It could add a very strong firewallvm to Qubes for daily use. But that's
up to the Qubes dev people.
>
> I would be curious how, when you start a vm it ausostarts both the net
> and firewallvm, is it the case that this vm is being started in the same
> way?
No, i do everything by hand. In my situation with two HVM's, the pfsense
and the lubuntu HVM's must be running before you can add the xen xl
commands to add the interfaces. Cause the IP adresses are static and
configured inside pfsense and lubuntu, you only have to give the two xl
commands from dom0 and then everything should work.
>
> I think a better better write up of the configuration could be helpful.
> Ive got a skylake laptop, i considered the vyatta route, however if I
> can use OPNSense id rather do that
>
> great work... be nice if you could help assist others get there witha
> short write up
>
Setup
sys-net <---> xn0 Pfsense HVM xn1 <--> vif lubuntu HVM
10.137.1.1 <---> WAN 10.137.1.7 (Pf) 10.137.4.5 LAN <--> lubuntu
10.137.4.6
gw 10.137.4.5
- xn0 is a netvm added interface as set in the Qubes manager and is
standard.
- xn1 is added to pfsense with the xl command from dom0 as described.
- vif4,1 is also added with the xl command. (Both VM's must be running).
- ping and DNS lookups where good from lubuntu, but i needed squid for
http traffic. Maybe NAT in PfSense is not properly working, have to
figure out why it didn't work.
Some minors, sometimes the pfsense times out of pci0 and the parallel
bus when booting, so it boots slow sometimes, but i discovered that when
i have a clean boot from my laptop, it boots smooth.
It needs improvement ;-)
Hope this helps...
--
Greetings,
Rudy