Virtual NIC Configuration
Virtual NIC Configuration
Hello,
Im making a configuration of a firewall (ipfire) on vb and I want to get the red interface on the 192.168 subnet. I think it is in the virtual NIC configuration, and I believe that you make the modification in virtualbox; you have to change the way the virtual NIC is being created. Anyone knows how to do this?
Thank you.
Im making a configuration of a firewall (ipfire) on vb and I want to get the red interface on the 192.168 subnet. I think it is in the virtual NIC configuration, and I believe that you make the modification in virtualbox; you have to change the way the virtual NIC is being created. Anyone knows how to do this?
Thank you.
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Virtual NIC Configuration
I have no clue what that might mean. Can you please explain?M4UROX wrote:I want to get the red interface on the 192.168 subnet.
In what sense?M4UROX wrote:you have to change the way the virtual NIC is being created.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Virtual NIC Configuration
Im making a configuration of a firewall (ipfire) and i was getting some problems while connecting with openvpn and someone told me this:
Thread Link ( http://forum.ipfire.org/viewtopic.php?f=27&t=18041 )
I'm going to concentrate on simplification first. I don't know how much experience you have with VirtualBox, but it has been a while since I used it. I do remember there were several networking modes, and one used a bridged network for the virtuals, putting some rules in it that made it hard to access from the outside.
In this case, I'm assuming you are using the 192.168 subnet for your network, so you want to vpn to a machine on that network. Your firewall does not have that from what I see, so there is no way to connect (ie, I'm assuming if you ping the 10. subnet, you'll get nothing)
IF you have a spare machine you can lose for a quick test, set it up as the IPFire machine (two nic's), assigning one nic to the network at the office (using dhcp is fine), and the other nic to either connect to a baby workgroup switch or even directly to some other machine. Run your test that way to see if it is VirtualBox issues causing the networking wierdness.
I use virtualization for several IPFire boxes, mainly at our NOC, so I know the virtualization does not cause the problem by itself. But the networking I'm seeing does not make sense to me.
IF you do not have a separate machine, figure out how to get the red interface on the 192.168 subnet. I think it is in the virtual NIC configuration, though like I said, it has been a very long time.
Thread Link ( http://forum.ipfire.org/viewtopic.php?f=27&t=18041 )
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Virtual NIC Configuration
What I understood from the little that I read is that you try to simulate a network topology. From the 10.0.2.15 address that you mentioned, it seems that you selected the NAT mode for networking in your VM, the easiest to get on the Internet and the default.
If you want to have the VM participate as an equal to the network, you've got to go to the VM Settings » Network » Adapter 1 » Attached to. Set that to "Bridged". Select the actual NIC that you're bridging it to (best if it's wired). Reboot your VM and it will take an IP from your home network, just like if it was another computer. If it's a wireless card that you're bridging to, it might or might not work.
For more information see 6.2. Introduction to networking modes and 6.5. Bridged networking on the User Manual.
If you want to have the VM participate as an equal to the network, you've got to go to the VM Settings » Network » Adapter 1 » Attached to. Set that to "Bridged". Select the actual NIC that you're bridging it to (best if it's wired). Reboot your VM and it will take an IP from your home network, just like if it was another computer. If it's a wireless card that you're bridging to, it might or might not work.
For more information see 6.2. Introduction to networking modes and 6.5. Bridged networking on the User Manual.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Virtual NIC Configuration
Hmm but it needs to stay as internal network (im doing this configuration for a school evaluation). Basically i want to be on my personal pc and be able to from there to connect with openvpn to the virtual machine running ipfire. That isnt possible with internal network?
Thank you for taking your time trying to help me.
Thank you for taking your time trying to help me.
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Virtual NIC Configuration
Draw your network topology. Treat your VM as another computer.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
socratis
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Virtual NIC Configuration
Please:
- Lower the resolution of the topology. I just returned from the eye doctor and I'm not farsighted, thank you
. Something that matches approximately the size of the rest of the site? - (the really important part and why I want to see an edited picture) Include your actual computer (where's the host in the diagram?) and put some numbers (like subnets, masks). Color-names mean absolutely nothing in basic networking. And we have to have a common language if you want for us to understand each other.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Virtual NIC Configuration
Sorry for the late answer.
https://scontent.fopo1-1.fna.fbcdn.net/ ... e=58979439
Tried to put the image here but it was enormous lol.I think the problem is on the gateway
https://scontent.fopo1-1.fna.fbcdn.net/ ... e=58979439
Tried to put the image here but it was enormous lol.I think the problem is on the gateway
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Virtual NIC Configuration
I doubt that it is simply a default gateway problem. I think you are using the wrong network setting for the vm.
If the vm has an IP of 10.0.2.15 you are using the default setting of NAT. I would suggest that you try bridged mode so that your host has a normal network connection to the vm. The vm should have an IP in the same IP subnet as the host.
If the vm has an IP of 10.0.2.15 you are using the default setting of NAT. I would suggest that you try bridged mode so that your host has a normal network connection to the vm. The vm should have an IP in the same IP subnet as the host.
Bill
Re: Virtual NIC Configuration
So you suggest that i use bridged adapter on all the firewall nic and on the pc that is simulating a user or only change the one that i have NAT and leave the others as internal network?
This are my nic settings.


This are my nic settings.


-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Virtual NIC Configuration
I am more concerned about the network config of your host machine and how you propose to connect your ipfire setup to the physical machine and the physical world. (This has been asked before). It will do nothing otherwise.
I would think that the Internet side of it somehow has to connect to a NIC on the host so that it can connect to the physical Internet. Have you worked out how to do this? Which of the protected networks do you want to connect the Win 7 vm to? I would think it should be the green.
Why did you set adapter 1 to NAT? What was that supposed to achieve?
I would think that the Internet side of it somehow has to connect to a NIC on the host so that it can connect to the physical Internet. Have you worked out how to do this? Which of the protected networks do you want to connect the Win 7 vm to? I would think it should be the green.
Why did you set adapter 1 to NAT? What was that supposed to achieve?
Bill
Re: Virtual NIC Configuration
Teacher told me at school to use adapter 1 as NAT.Why did you set adapter 1 to NAT? What was that supposed to achieve?
Hmm i dont understand what youre trying to say. My problem here is that im trying to connect to the virtual machine of ipfire with openvpn from my personal computer and im getting an error. Someone told me that the problem was probably with the gateway that would need to be changed.I am more concerned about the network config of your host machine and how you propose to connect your ipfire setup to the physical machine and the physical world. (This has been asked before). It will do nothing otherwise.
I would think that the Internet side of it somehow has to connect to a NIC on the host so that it can connect to the physical Internet. Have you worked out how to do this? Which of the protected networks do you want to connect the Win 7 vm to? I would think it should be the green.
Re: Virtual NIC Configuration
If it was you what would you use?
