[SOLVED] Need explication for network for CT...

SLB-Info

New Member
Jul 15, 2017
8
0
1
57
France
Hi all,

I'm don't speack fluently english. So, please, accept my apologyze my bad expression.

Well, I installed Proxmox 5.2 on a dedicated server from online.net.

I haven't any probleme for that.

I create a CT for being. For this operation, I don't have any probleme.

But, I'm unable to have a good parameter to have connexion with internet

Well see the images to look my param and if you want, gve me some explication because i don't understand where I make a mistake...


1 - On proxmox, file firewall.sh
FichierIptablesMain2.png

2 - Network from Proxmox
ReseauGlobal2.png
Note : I create vmbr1

3 - Network from CT
ReseauCT.png

Where I'm on consol of CT, I can't pting any IP But where I'm Proxmox IP, I can.

Please, I'm bloked at this point :S

Thanks very much
Regards

Sylvain
 
to use NAT on your CT you need to set the gateway (the HOSTs IP) for you that is 192.168.0 (i dont know if that is a valid IP)
 
Hi,

I can'i add any gateaway on vmbr1 because vmbr0 have the gateway

In NAT, I wrote all from or to public IP, go from or to vmbr1

Resulte from CT :

On CT I add gatewawy 192.168.9.0 on eth0

But same probleme

Code:
root@Nginx:~# ping 8.8.8.8
connect: Network is unreachable

Regards
Sylvain
 
In your settings change vmbr1 to 192.168.9.254, 255.255.255.0
In your CT change to vmbr1 and assign a gateway of 192.168.9.254
 
  • Like
Reactions: SLB-Info
Hi,

Thanks you very much.

I do what you say and...

It's OK.

On firewall.sh where I configure the NAT (Not me, but a friend with more competence than me :p), I change 192.168.9.0 to 192.168.9.254 like you wrote.

I think I need to learn more about NET and IP

Code:
root@Nginx:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=123 time=0.907 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=123 time=0.979 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=123 time=1.24 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=123 time=0.973 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=123 time=0.944 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=123 time=0.959 ms
64 bytes from 8.8.8.8: icmp_seq=7 ttl=123 time=2.17 ms
64 bytes from 8.8.8.8: icmp_seq=8 ttl=123 time=0.977 ms