Hello,
Im wondering if anyone could help me figure out a problem i've been having with some but mostly one jail...
My server is currenlty connected via a managed switch to the router with a static ip.
nameservers set to 8.8.8.8 and 8.8.4.4
default gateway set to ip of router.
the server normally has everything inorder and it it self never has problems connecting to the internet for upgrades or notification emails.
however some of my jails (all static ip) sometimes dont connect to the router which is needed for them like for example my nginx proxy for nextcloud.
so it can be accessed from my domain.
if i ping google.com inside the shell of set jail an error about not being able to resolve dns lookups pops up.
restarting the server or jail does not help. only recreating the jail does, untill the server restarts.
After much trial and error even removing the switch and directly connecting my server to the router
i've found that if i ping the router the issue resolves and works untill next reboot.
after seeing this it also turned out the router doesnt know the jail is on the network until it pings the router.
what may be the problem and how can this be resolved?
Maybe i could just make a cronjob that pings my router as the jail but i have no clue what kind of command this would be?
as root
help will be appreciated!
Im wondering if anyone could help me figure out a problem i've been having with some but mostly one jail...
My server is currenlty connected via a managed switch to the router with a static ip.
nameservers set to 8.8.8.8 and 8.8.4.4
default gateway set to ip of router.
the server normally has everything inorder and it it self never has problems connecting to the internet for upgrades or notification emails.
however some of my jails (all static ip) sometimes dont connect to the router which is needed for them like for example my nginx proxy for nextcloud.
so it can be accessed from my domain.
if i ping google.com inside the shell of set jail an error about not being able to resolve dns lookups pops up.
restarting the server or jail does not help. only recreating the jail does, untill the server restarts.
After much trial and error even removing the switch and directly connecting my server to the router
i've found that if i ping the router the issue resolves and works untill next reboot.
after seeing this it also turned out the router doesnt know the jail is on the network until it pings the router.
what may be the problem and how can this be resolved?
Maybe i could just make a cronjob that pings my router as the jail but i have no clue what kind of command this would be?
Code:
jexec jailID ping routerip
as root
help will be appreciated!