<div dir="auto">I am not a network expert, but I can tell you that a 192.168.6.xx address will never be an a <a href="http://192.168.4.0/255.255.255.0">192.168.4.0/255.255.255.0</a> network. So the gateway you have setup isn't legal and/or workable.</div><div class="gmail_extra"><br><div class="gmail_quote">On May 17, 2017 8:01 PM, "Joshua Kramer" <<a href="mailto:joskra42.list@gmail.com">joskra42.list@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here's the network setup:<br>
1. A virtual network named 'locservers' with the range <a href="http://192.168.4.0/24" rel="noreferrer" target="_blank">192.168.4.0/24</a><br>
and the device virbr2<br>
2. Under Network Interfaces, the device virbr2 has the address<br>
192.168.4.1 (this is the KVM host)<br>
3. On the virbr2 network interface, there are a number of slave<br>
interfaces. One of those slave interfaces is vnet1, and its MAC<br>
address corresponds to eth0 MAC address on the VPN server.<br>
<br>
On Tue, May 16, 2017 at 9:13 PM, Zach Villers <<a href="mailto:zachvatwork@gmail.com">zachvatwork@gmail.com</a>> wrote:<br>
> Hi Joshua,<br>
><br>
> I read through a couple of times, but didn't see how the KVM network<br>
> adapters were configured?<br>
><br>
> --<br>
> Zach Villers<br>
> zach@znix.site<br>
><br>
> On Tue, May 16, 2017, at 09:11 PM, Zach Villers wrote:<br>
>> Hi Joshua,<br>
>><br>
>> I read through a couple of times, but didn't see how the KVM network<br>
>> adapters were configured?<br>
>><br>
>> --<br>
>> Zach Villers<br>
>> zach@znix.site<br>
>><br>
>> On Tue, May 16, 2017, at 08:11 PM, Joshua Kramer wrote:<br>
>> > Hello,<br>
>> ><br>
>> > I'm trying to figure out a routing issue involving a set of servers I<br>
>> > have under KVM as well as OpenVPN.<br>
>> ><br>
>> > The servers are under a private network, <a href="http://192.168.4.0/24" rel="noreferrer" target="_blank">192.168.4.0/24</a> ... there are<br>
>> > no physical interfaces on the .4 network- it's all internal to KVM.<br>
>> ><br>
>> > I would like to have devices on the internet (i.e. my phone) be able<br>
>> > to access the servers I have on the .4 network. So, I have one<br>
>> > OpenVPN VM on the .4 network. My modem/router will forward inbound<br>
>> > connections for the OVPN port to this VM.<br>
>> ><br>
>> > I set up OVPN in routing mode. I gave the external devices a *.6/24<br>
>> > network. The tun0 interface set up via OVPN has an address of<br>
>> > 192.168.6.1. I connect to the OVPN server from outside of the network<br>
>> > using my cell phone over the cellular connection. The OVPN client on<br>
>> > the phone gives it an address of 192.168.6.2.<br>
>> ><br>
>> > The underlying hardware host has the address 192.168.4.1. The OVPN<br>
>> > server is on 192.168.4.34. I set up the routing on the hardware like<br>
>> > this:<br>
>> ><br>
>> > route add -net 192.168.6.0 netmask 255.255.255.0 gw 192.168.4.34<br>
>> ><br>
>> > Something is not working with that route. If I get on another VM that<br>
>> > is on the .4 network and do a traceroute to 192.168.6.1, I get the<br>
>> > following. It should show a hop to 192.168.4.34 but it does not.<br>
>> ><br>
>> > traceroute to 192.168.6.1 (192.168.6.1), 30 hops max, 60 byte packets<br>
>> > 1 192.168.4.1 (192.168.4.1) 0.162 ms 0.080 ms 0.076 ms<br>
>> > 2 192.168.6.1 (192.168.6.1) 0.499 ms !X 0.223 ms !X 0.134 ms !X<br>
>> ><br>
>> > What am I missing? The hardware host is misconfigured in some way and<br>
>> > I am having difficulty determining where. CentOS 7 runs on all hosts<br>
>> > and VM's.<br>
>> ><br>
>> > Thanks!<br>
>> > -JK<br>
>> > ______________________________<wbr>_________________<br>
>> > colug-432 mailing list<br>
>> > <a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
>> > <a href="http://lists.colug.net/mailman/listinfo/colug-432" rel="noreferrer" target="_blank">http://lists.colug.net/<wbr>mailman/listinfo/colug-432</a><br>
> ______________________________<wbr>_________________<br>
> colug-432 mailing list<br>
> <a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
> <a href="http://lists.colug.net/mailman/listinfo/colug-432" rel="noreferrer" target="_blank">http://lists.colug.net/<wbr>mailman/listinfo/colug-432</a><br>
______________________________<wbr>_________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" rel="noreferrer" target="_blank">http://lists.colug.net/<wbr>mailman/listinfo/colug-432</a><br>
</blockquote></div></div>