Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bridged and routed jails are with not working network. #3

Open
UlasSAYGINIM opened this issue Dec 25, 2021 · 1 comment
Open

bridged and routed jails are with not working network. #3

UlasSAYGINIM opened this issue Dec 25, 2021 · 1 comment

Comments

@UlasSAYGINIM
Copy link

Hi,

thank you for this work.

I tried to create jails both bridged and routed versions.

but for routed version i am not able to ping google.com or any other website.
I used resolv.conf
but no luck. but internal network was working.

I also tried bridged version but
in this case, i couldnt ping 10.0.2.2
but i can ping 10.0.2.101-102-103 from 101.
and still can not ping google.com o any outside from local network.

i didnt use nat or pf for any of them.
do i need to use nat ? i think for routed version didnt need.
but i couldnt be sure.

one another thing, how i can debug netgraph network to see it is going to outside of network?

I also tried other connection types for jails other than your script on another vm installations.,
but i couldnt find document for checking netgraph network properly.if you have any recommendations, i will be happy.

thanks in advance.

@genneko
Copy link
Owner

genneko commented Feb 15, 2022

@UlasSAYGINIM Sorry for being so late. There was a series of sad events for me and I missed this issue.
Maybe it's too late but anyway I'm trying to answer your questions.

For routed version, you may need one of the following combinations.

  • Enable IP forwarding and NAT on the jail host
  • Enable IP forwarding on the jail host, and configure a route to the internal jail subnet on the external gateway

For bridged version, are you using a virtual machine for a jail host?
If yes, you might have to allow promiscuous mode on your vm's network interface.
Please take a look at my post on a FreeBSD forum.
https://forums.freebsd.org/threads/jail-vnet-problem.73903/#post-451498

For netgraph, the following links are almost all I got.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants