#[GIVEN UP]My teacher broke my debian server, 2 days before hand in date, can someone help me?

308 messages ยท Page 1 of 1 (latest)

amber oak
#

So right before the hand in date of my big debian server task, that is like 50% of my grade, my teacher wanted to have a look at my server, which I allowed him to. He said that he was fixing some miner bugs he had spotted earlier, which I was fine with. And in the end, after toying around with bind9(named), the ens33(my 1st network card) doesn't have any connection to the outside world when it is configured in dhcp. How could I fix this, since I really can't hand him a completly borked (connection wise) server
๐Ÿ™

#

I have tried to give it a static ip adress, but to no avail

#

So I have 2 network cards right

#

ens 33 and 36

#

33 is meant to connect to the outside wolr

#

world

#

while 36 is meant to be a lan seggment in vmware

#

on which I would put other virtual machines, to then get them to get dhcp and dns trough my ens33

#

if someone could help, I would be extremly gratefull

#

when starting my server this is the error I get

#

I have also tried to set my ens33 card to bridged and NAT, both didn't work

hazy cloak
#

lmao isnt that his fault?
i know this isnt the solution you want, but the easiest way to fix it 2 days before hand in date would be to back up everything relevant and then reinstall the server

amber oak
#

ajajaja

#

thank you

#

i'il do that

#

but I hoped I could get it fixed, but thanks anyways

hazy cloak
#

you could probably fix it but idk if you will be able to find the issue in time

amber oak
#

fair enough, but do you have a direction I could starting looking into?

hazy cloak
#

is where i would start

#

google things related to ens33, vmware, and dhcp

lyric tiger
#

try running dhclient manually?

#

dhclient <interface_name>

#

I think that is the syntax

#

hopefully a dhcp server is running somewhere to which you're connecting...

amber oak
#

dhclient isn't a tool I have install

#

sadly

amber oak
wooden brookBOT
#

reaI received a thank you cookie!

lyric tiger
#

the internal stuff is working right?

amber oak
#

I can't test if ens36 is working

#

or atleast I don't know how to

lyric tiger
#

just using ping and stuff

amber oak
#

but it is running on a lan segment I created myself

#

so it is logicall it can't connect

lyric tiger
#

see if ips are allotted

#

you can ping outside and inside

amber oak
#

I can't

lyric tiger
#

or do you have nmap installed?

amber oak
#

no

#

rip

lyric tiger
#

well under extreme conditions you can download the pkg file(.deb on debian) to your pc and transfer it to the server... and install it there...

lyric tiger
amber oak
#

your last one shouldn't work

#

and doesn't work

lyric tiger
amber oak
#

since you can only ping that ip if you are connected to the lan seggmen

amber oak
lyric tiger
#

Ohhh. I server=vm?

amber oak
amber oak
#

the server needs to be in a vm

#

so we can deliver it to the teacher

lyric tiger
#

and the vm is connected to what?

amber oak
#

the vm itself is running on my host machine

#

which is connected via an ethernet cable

#

that clearly works

#

(I am here)

lyric tiger
amber oak
#

no

#

we NEED

#

to use vmware

#

since most of the class is just windows users

lyric tiger
#

classic brainrot smh

amber oak
#

and he wants uniformity when testing our servers

#

so he doesn't need to spin up multiply programs

amber oak
#

i'il get a diagram

#

brb

lyric tiger
#

ok so go to your host and ping that 172 thing?

amber oak
#

translation

#

Your computer with vmware

#

internet connection

#

server

#

and line B is the secondary network that we create (ens36, with the lan seggmen)

#

and on our segment that we create we need to add a client (easy)

#

and due to our (hopefully) correct configuration the client should have a dhcp connection trough ens36, that is on our lan segment LANconnectie

#

but the problem is

#

that I don't have a internet connection with vmware

lyric tiger
amber oak
#

yea

#

for example (his example)

#

a windows 10 virtual machine

#

that just has 1 network card

#

that is set on the lan segment

#

so in total there should be 2 vm's

amber oak
#

one of you network adapters (inside vmware) is set in the lan segment

#

which is configured via ens36

lyric tiger
# amber oak yea

so that should work even without an internet connection (ens33 I believe)

amber oak
#

yea

#

the dhcp server(on the 'server')

#

still servers ip's

#

they just can't connect to the internet

lyric tiger
#

so host <-> server (ens33) is bridged networking
server <-> client (ens36) is the lan segment?

amber oak
#

yes

#

server has 2 network cards

#

ens33 for the outside world

lyric tiger
#

imo. both should work independently. I'd suggest going about it one by one.

amber oak
#

and ens36 that is for other clients to connect to only

amber oak
#

but atm, ens36 is working as it should be

#

but ens33 doesn't get an ip adress

#

to connect to the real internet

lyric tiger
#

do you have to use bridged for ens33?

#

nat is usually painless

amber oak
#

I have tried both

#

and they both don't work

#

but i'il change it to nat real quick

#

and show

lyric tiger
#

btw how do you connect your host computer to the ethernet?

amber oak
#

just via an ethernet cable

#

that plugs into the wall

#

that clearly works

lyric tiger
#

I mean what's the connnecting software

amber oak
#

since I am here chatting on my host

lyric tiger
#

NetworkManager?

amber oak
#

networkmanager

#

yea

lyric tiger
#

cuz in bridged both are vm and host are exactly equivalent

#

why don't you use network manager on you server-vm then?

amber oak
#

I would

#

but debian has something already

#

I really don't know

#

it enough

lyric tiger
#

okay leave it for now

amber oak
#

for everyone in my class it isn't borked

#

the only thing I think maybe is borked

#

is my /etc/resolv.conf

#

that I know

#

(this is ens33 configured to try dhcp)

#

and the first card trying to use nat

#

oh this is 100% fucked

#

(pdc/pdc.local)

#

is the domain that my school servers us up

#

and where I was working on before coming home

#

do you know how to configure /etc/resolv.conf?

lyric tiger
amber oak
lyric tiger
#

ip dev ens33 set up

amber oak
lyric tiger
#

*dev -> link

amber oak
lyric tiger
#

ip link set dev ens33 up

#

๐Ÿ˜… been a long time

amber oak
#

no worry

#

haha

#

it didn't give an error

#

but just didn't do anything

lyric tiger
#

yeah now it's up

#

you now need something like dhclient to run dhclient to get an ip from the dhcp servers your school lan has...

#

this is still bridged right?

#

or did you switch to nat?

amber oak
#

nat

lyric tiger
#

oh then I think you can just assign an ip and it should work

#

goto host

#

do ifconfig

#

see what's the nat interface and ip subnet

#

and add an ip

#

using ip addr

amber oak
#

IPv4; 192.168.83.1
Subnet; 255.255.255.0

#

(host)

lyric tiger
#

there should be 2 right?

#

one is ethernet the other is nat?

amber oak
#

on my host?

lyric tiger
#

yeah

amber oak
#

it only has 1 network connection

#

that is via ethernet

lyric tiger
#

then nat isn't getting created.

amber oak
#

and the ethernet has nat applied to it

#

(I think!!!)

lyric tiger
#

oof no nat is like

#

wam

amber oak
#

damn...

#

thank you very very much for your help

#

but I think i'il just start over

amber oak
wooden brookBOT
#

solvargi received a thank you cookie!

amber oak
#

and helping me

#

but i'il just start from scratch, fresh vm

#

thank you

#

๐Ÿ˜„

lyric tiger
#

okay. you can check what your prof did with history

amber oak
#

he just configured stuff in my dns server

#

bind9

#

which Is weard

#

weird

#

because when I DISABLE THE SERVICE

#

it still doesn't work

lyric tiger
#

nat is something like a virtual interface vms can tap into.
it's created like this:

amber oak
#

can it still be resolv.conf?

lyric tiger
#

yeah

amber oak
#

I should probs remove the first two lines?

lyric tiger
#

idk

amber oak
#

that is a domain that isn't even here

#

that is my school

lyric tiger
#

yeah do that lol

hot blaze
#

How'd your teacher broke your server

lyric tiger
#

comment them out

amber oak
#

I really don't know

hot blaze
#

Damn

lyric tiger
#

are you connected to the ethernet now?

amber oak
#

(host?)

#

yes

hot blaze
#

Teacher only ever used windows server before

amber oak
#

so maybe he can help ๐Ÿ™

lyric tiger
#

virt-manager has a connection pane where you have to start the nat iface

#

maybe that's the case?

amber oak
#

I am using vmware

lyric tiger
#

because if nat is running it should show up in ifconfig

amber oak
hot blaze
#

What does your server host?

#

or do

amber oak
#

webserver

#

dns

#

dhcp

#

file server

hot blaze
#

Exact same thing I do then

#

Except dhcp

amber oak
#

that was the simplest part

hot blaze
#

Okay uhhhh

lyric tiger
# amber oak

yeah so can you see 192.168.189.0 from your host?

amber oak
#

can I ping it?

#

no

lyric tiger
#

try pinging 192.168.189.1

amber oak
#

it replys

#

so my host can see it

#

and even ping it

lyric tiger
#

that is most probably your own host ๐Ÿ˜

amber oak
#

the host has

lyric tiger
#

post the entire output of ip a?

amber oak
#

host?

#

or nah

lyric tiger
#

yes from the host

amber oak
#

(I am only windows though) I know I know

#

this is my 'school' partitiohn

#

since I also need to code in c#

lyric tiger
#

that's okay

#

ipconfig on windows

amber oak
#

(still use linux for everthing else)

lyric tiger
#

post your /etc/network/interfaces?

amber oak
#

i'l brb (need to go to the toilet)

lyric tiger
#

try
ip addr add 192.168.189.2/24 dev enp33

#

and try pinging the host(192.168.189.1).

amber oak
lyric tiger
#

add before that

amber oak
#

ping: connect: network is unreachable

lyric tiger
#

.2 is the default gateway on nat.

lyric tiger
amber oak
#

i'il try right away

lyric tiger
#

ip route add default via <insert gateway IP> dev enp33

amber oak
#

not to sound super stupid

#

but how can i obtain that ip?

#

is that just

#

192.168.189.1 ?

lyric tiger
# amber oak

It's .2 i think
But goto Vmnet 8 and check in nat settings?

#

Send screenshot of when you click vmnet8?

amber oak
#

it is .2

lyric tiger
#

Okay set that.

amber oak
lyric tiger
amber oak
#

(these are all default btw)

lyric tiger
#

Ummmm,
ip route add <gateway IP> dev <interface on which it should be reachable>
Then the above command?

#

Can you ping the gateway from the host?

amber oak
lyric tiger
#

Okay idk now. Oof.

#

That's all I know.

amber oak
wooden brookBOT
#

solvargi received a thank you cookie!

amber oak
#

thanks for trying to help me

#

but i'il just try to port everything to a new vm

#

much thanks for you time and dedication

#

you are my hero of the day

#

much appreciation for you,

#

and altough 'we'(you! ๐Ÿ™‚ ) didn't succeed, you really taught me a lot

#

and thank you for your patience with me

lyric tiger
#

Lesson of the day don't give your pc to professors. Or atleast keep a snapshot of the working state.
LoL

amber oak
#

indeed

#

๐Ÿ‘

#

[GIVEN UP]My teacher broke my debian server, 2 days before hand in date, can someone help me?

hot blaze
#

That's a new tag