OpenBSD router in VM: client can't ping external IPs
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OpenBSD router in VM: client can't ping external IPs
I'm trying to setup an OpenBSD router in Virtual Box so that I can later set it up in the actual metal
The OpenBSD VM has three Eth cards and I'm using two right now. em0 is bridged to the actual Eth adapter and OpenBSD can ping 1.1.1.1 and google.com. em1 connects to Virtual Box's internal network.
There is a Linux VM with one Eth card and connects to Virtual Box's internal network. Linux gets a dhcp IP and can ping OpenBSD. Also, OpenBSD can ping Linux. But Linux can't ping 1.1.1.1 (or any other public IP). I haven't reach the point to set up DNS but I should be able to ping an external IP, right? What am I missing?
I'm guessing -- because I'm not sure which NIC connects where -- that you have some sort of routing problem. Look at the output of `$ netstat -rnf inet` or `$ route -n show -inet` and see how this OS reaches 1.1.1.1. Do you have a default route? If not, that's why.
Network Address Translation (NAT) has been a standard Internet practice for decades. Briefly, it permits all of us to have our own private networks that can't be directly addressed on the Internet, and those private networks each have shared access to the Internet.
Let us know if you have any questions about it, or about provisioning it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.