*SOLVED* Can ping but not connect from a custom template [message #23349] |
Thu, 15 November 2007 18:06 |
bmaisonn
Messages: 5 Registered: November 2007
|
Junior Member |
|
|
Hi,
I've searched to resolve this problem for a long time ! So now, i decide to share it .
For a project I had to make a custom template with buildroot and busybox.
I created a VE and gave him an ip address ( venet interface )
(vzctl create 103 --ostemplate linux --ipadd 192.168.254.103)
Next inside that VE i configured my interfaces with this script :
#!/bin/sh
ifconfig venet0 add 127.0.0.1 netmask 255.255.255.255 broadcast 0.0.0.0 up
ifconfig venet0:0 add 192.168.254.103 netmask 255.255.255.255 broadcast 0.0.0.0 up
route add -net 191.255.255.1 netmask 255.255.255.255 dev venet0
route add -net default gw 191.255.255.1
From here, i can ping the HN but can't connect to him through a tcp socket.
I'd like to know i a forgot something, or made something wrong ?
Thanks a lot !
[Updated on: Fri, 16 November 2007 13:15] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|