The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 JAIL and DHCP glitches
Author: VVK 
Date:   27-12-01 09:03

Hi,

I've been running jail successfully for almost 2 years now. Today my cable
company changed static configuration to DHCP one. I've reconfigured my to use
DHCP, however, jail would not work.

in /etc/rc.conf:

ifconfig_ed0="DHCP"
ifconfig_ed0_alias0="inet 192.168.0.30 netmask 255.255.255.0"
ifconfig_ed1="inet 192.168.0.1 netmask 255.255.255.128"
ifconfig_ed1_alias0="inet 192.168.0.10 netmask 0xffffffff"
hostname="crxxxxxx-E"
inetd_flags="-wW -R 1024 -a 192.168.0.30"
portmap_enable="YES"
nfs_client_enable="YES"
nfs_reserved_port_only="YES"
nfs_server_enable="YES"
# using this to mount drives/directories from jail

in /etc/dhclient.conf

send host-name "crxxxxxxx-E"; # Put your client IP here
request subnet-mask, broadcast-address, routers, domain-name-servers;

now, the problem is with the following:

jail works fine (SSH/TELNET/etc) when i don't have /etc/resolv.conf. however,
i cannot connect to any host from jail as it cannot resolve it. as soon as i
put it in with correct DNS numbers, it starts giving me hard time: connects,
say, to port 22, but no SSH header is displayed and same with other daemons..

inside jail, i have the following:

root@me:/home/me>>ifconfig -a
ed0: flags=8843 mtu 1500
ether 00:50:ba:cd:9a:fa
ed1: flags=8843 mtu 1500
inet 192.168.0.10 netmask 0xffffffff broadcast 192.168.0.10
ether 00:50:ba:cd:b9:60
lo0: flags=8049 mtu 16384

there is no address associated with ed0 (my external nic) while in host
system it shows the following:

ed0: flags=8843 mtu 1500
inet 24.xx.xx.247 netmask 0xffffff00 broadcast 24.xx.xx.255
ether 00:50:ba:cd:9a:fa
ed1: flags=8843 mtu 1500
inet 192.168.0.1 netmask 0xffffff80 broadcast 192.168.0.127
inet 192.168.0.10 netmask 0xffffffff broadcast 192.168.0.10
ether 00:50:ba:cd:b9:60
lo0: flags=8049 mtu 16384
inet 127.0.0.1 netmask 0xff000000


----------------------
output of jail:
----------------------
Skipping disk checks ...
Doing initial network setup:.
ifconfig: ioctl (SIOCDIFADDR): permission denied
lo0: flags=8049 mtu 16384
Additional routing options: TCP keepalive=YESsysctl:
net.inet.tcp.always_keepalive: Operation not permitted
.
Routing daemons:.
Additional daemons: syslogd.
Doing additional network setup:.
Checking quotas: done.
Enabling quotas: done.
Starting final network daemons:.
Turning on accounting:
accton: /var/account/acct: Operation not permitted
ELF ldconfig path: /usr/lib /usr/lib/compat /usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Starting standard daemons: inetd cron sshd.
Initial rc.i386 initialization:.
Configuring syscons: blanktime/etc/rc.syscons: cannot open /dev/ttyv0: no
such file
.
Additional ABI support:.
Starting local daemons:.
Local package initialization: idled.
Additional TCP options: log_in_vain=YESsysctl: net.inet.tcp.log_in_vain:
Operation not permitted
sysctl: net.inet.udp.log_in_vain: Operation not permitted

^^^^^^ e
What might be the problem? Have you ever heard about this? Is there a fix?
Would greatly appreciate any helo/hints.

THANK YOU<

Reply To This Message
 
 Re: JAIL and DHCP glitches
Author: WCollier 
Date:   27-12-01 09:11

Are you sure your cable company is letting you keep a static name? My dhclient picks up that the name changes along with the IP, if you have the new attbi.com setup. The name of you machine becomes the same as the IP, exmaple:

you get 204.123.234.45 as the IP - your machine name will be changed to 204-123-234-45.client.attbi.com. That may be why your address doenst resolve right - becasue when its rever DNS checked, it comes back with something different from what you think you are in the conf file.

I have no idea how to ifx this - AT&T is being quite stupid about this - they shoudl have at least kept the fixed hostnames that @home let us have.

Reply To This Message
 
 Re: JAIL and DHCP glitches
Author: VVK 
Date:   27-12-01 10:03

this is not the problem, internet works fine if not from jail. however, inside jail i cannot make it work.. if i staticly configure my ed0 then jail will work or at least try to work since it wouldn't be able to access outside due to machine not setup as DHCP.

for some reason inside jail, my hostname is 0.0.0.0 instead of my IP assinged by DHCP.

Reply To This Message
 
 Re: JAIL and DHCP glitches
Author: David DeTinne 
Date:   28-12-01 08:38

DHCP using my attbi connection writes to the resolv.conf file which changes the dns service to attbi dns servers which could care less whether or not my internal ip's resolv. If my internal ip's don't resolv, samba does not work, etc. Is that what is happening to you?

Reply To This Message
 
 Re: JAIL and DHCP glitches
Author: VVK 
Date:   02-01-02 16:21

DHCP gives shows my ip as 0.0.0.0 and that's where all the problems are. Only if i configure it as static does it show my IP correctly.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org