Articles of tftp

TFTP / PXE与领class

我在与领class进行PXE工作时遇到了麻烦。 它的dl的pxelinux.0罚款,find正确的pxelinux.cfg为mac地址,然后尝试下载内核。 那我们就失败了 找不到内核映像:boot / CentOS-6.3-x86_64-vmlinuz boot: 我可以通过TFTP从另一个盒子手动下载文件。 错误日志如下所示: http://pastebin.com/Mps4TDM2 我可能做错了什么?

VMware服务器内的tftpd-hpa无法为PXEBoot提供文件

我有一个用于networking安装的PXE服务器。 一切工作正常,直到我们使用VMware ESXi 5.1虚拟化服务器。 当我们尝试通过networking启动一台机器时,它从DHCP服务器(在同一台机器上运行)获得一个IP,并等待TFTP,直到超时。 我们运行Debian 7 Wheezy,使用isc-dhcp-server和tftpd-hpa。 这里是我的conf文件: 的/etc/dhcp/dhcpd.conf allow booting; allow bootp;` default-lease-time 1800; max-lease-time 3600; option space PXE; option PXE.mtftp-ip code 1 = ip-address; option PXE.mtftp-cport code 2 = unsigned integer 16; option PXE.mtftp-sport code 3 = unsigned integer 16; option PXE.mtftp-tmout code 4 = unsigned integer 8; option PXE.mtftp-delay code 5 […]

iptables过滤tftp的帽失败

我想使用iptables来过滤tftp客户端的OUTPUT包,但失败了,你能帮我吗? 我的规则: iptables -A OUTPUT -m udp -p udp –dport 69 -j NFQUEUE iptables -A OUTPUT -m string –algo kmp –string "nessus" -j NFQUEUE 客户端的OUTPUT包大部分是这样的: No. Time Source Destination Protocol Info 9 1.432738 192.168.9.76 192.168.9.114 TFTP Read Request, File: nessus713610685\000, Transfer type: netascii\000 Frame 9 (69 bytes on wire, 69 bytes captured) Ethernet II, Src: […]

ks.cfg文件+如何适合PXE服务器的ks.cfg

我想在PXE服务器下configurationks.cfg文件所以我可以从PXE服务器上安装linux PXE服务器包括文件(initrd.img&vmlinuz)和ks.cfg 我的默认ks.cfg取自原始的initrd.img(来自ISO文件) 现在我需要编辑ks.cfg以便通过PXE服务器使用这个文件 我的问题是 – 什么需要改变在ks.cfg为了使用PXE服务器例如 我想全部 /tmp/cdrom 在原来的ks.cfg中需要更改为 /mnt/source 还需要添加这一行 nfs –server=xxx.xxx.xxx.xxx –dir=/RedHat-DIR network –device eth0 –bootproto dhcp –nodns 可能还有其他更改,但我需要帮助

通过PXE使用不同的thinstationnetworkingconfiguration文件来启动不同的操作系统

我想用thinstation启动到连接到Ubuntu或Windows Server 2008 R2的RDP客户端。 用户应该能够select他们想要连接的操作系统。 我在pxelinux.cfg目录的默认文件中添加了以下标签。 标签Thinstaion-Windows内核窗口/ vmlinuz附加initrd = windows / initrd 标签Thinstaion-Ubuntu内核ubuntu / vmlinuz附加initrd = ubuntu / initrd 我的问题是,这两个select使用位于tftp根目录中的一个thinstaion.conf.network,而我想让瘦客户端从OS特定的目录内拉动thinstaion.conf.network。 所以这两个操作系统都有自己的thinstaion.conf.network文件。 ex-windows / thinstaion.conf.network和ubuntu / thinstation.conf.network 我不想使用thinsation.hosts文件,因为它将限制用户到一个单一的操作系统,他们将无法select有select的RDP服务器。

TFTP(用于PXE)运行Debian的服务器,Samba出现问题

我的networking工作方式是我的DHCP服务器(pfSense)位于192.168.1.1的另一台服务器上。 我的Mac服务器是192.168.1.2,我的TFTP服务器(最新版本的Debian)是192.168.1.3。 我在DHCP服务器上configuration了DHCP选项66和67,并且在Debian服务器上安装了tftpd-hpa软件包。 当我使用U盘将pxelinux文件传输到/ srv / tftp目录时,我可以从PXE服务器启动PC,所以我知道TFTP工作正常。 问题是桑巴。 Samba已经预装在Debian上,我也尝试使用aptitude删除并重新安装。 我想使用Samba来服务/ srv / tftp目录,并使用我使用“adduser”创build的非root帐户对Samba共享进行身份validation。 我已经将以下内容添加到我的/etc/samba/smb.conf文件中: [tftp] comment = tftp directory writeable = yes locking = no path = /srv/tftp 然后,我使用smbpasswd -a myusername将我的用户帐户添加到Samba的密码列表中 然后,我可以在我的iMac和Windows PC上看到这个份额。 当我尝试将驱动器安装在任一个上时,Windows PC(Win7)指出共享不可访问,而我的Mac显示如下: 它能够看到共享,如果我访问的驱动器,因为它显示在我的家庭文件夹的共享,但tftp共享不可装载,并且主文件夹是。

PXE启动内核恐慌

我在设置PXE启动服务器时遇到问题。 我运行了isc-dhcp-server , tftp-hpa通过tftp(validation过的作品)提供文件,而apache2托piperootfs映像。 PXE客户端似乎正确地下载内核和initrd文件,然后内核恐慌。 这是我的/tftpboot/pxelinux.cfg/default : default pxeboot label pxeboot kernel vmlinuz-3.16.0-4-amd64 append initrd=vmlinuz-3.16.0-4-amd64 ip=dhcp boot=live fetch=http://xxx.xxx.xxx.xxx/filesystem.squashfs 我的服务器是Ubuntu 15.04 mini安装。 我最初按照以下说明创buildfimesystem.squashfs根文件系统映像: http : fimesystem.squashfs 然后我按照这些说明来安装DHCP和TFTP: https : //help.ubuntu.com/community/DisklessUbuntuHowto 但是我不得不修改/etc/default/tftpd-hpa来使TFTP服务文件如下: # /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_DIRECTORY="/tftpboot" TFTP_ADDRESS="xxx.xxx.xxx.xxx:69" TFTP_OPTIONS="–secure" RUN_DAEMON="yes" 如果TFTP_OPTIONS指令更改TFTP_OPTIONS ,则不再启动tftp。 然后我启动了一个apache2服务器,而且似乎显示了我放在/var/www/html/中的文件,我可以从http://xxx.xxx.xxx.xx/filesystem.squashfs下载文件,但内核在引导时出现混乱。 我最初从我的主机/boot/ dir中取得了kernel和initrd映像,因为我的chroot/boot/ dir是空的,但是随后我使用这些指令在chroot上安装了一个内核: http : //willhaley.com/willhaley/blog/创build-A-定制Debian的现场环境/ chroot chroot apt-get install –no-install-recommends –yes \ linux-image-3.16.0-4-amd64 live-boot […]

排除TFTP连接故障

我有一个小的设备,在启动时,在短时间内具有192.168.97.60的静态IP,允许通过TFTP进行固件更新。 如果我将这个设备连接到我的networking,它会从我的路由器得到一个IP地址,并且提供它的configuration网页就好了。 如果我使用交叉电缆连接Windows或Mac笔记本电脑并尝试运行TFTP,则无法连接。 有没有一种很好的方法来诊断为什么设备无法连接?

无法通过NFS挂载根

我有一个NFS服务器连接到一个可重构的计算机(与BORPH系统)。 我使用“run netboot”通过DHCP + TFTP + NFS启动minicom,我看到以下错误: Sending DHCP requests .<6>eth0: link is up, 100 FDX, pause enabled ., OK IP-Config: Got DHCP answer from 192.168.100.1, my address is 192.168.100.2 IP-Config: Complete: device=eth0, addr=192.168.100.2, mask=255.255.255.0, gw=192.168.100.1, host=roach030193, domain=, nis-domain=(none), bootserver=192.168.100.1, rootserver=192.168.100.1, rootpath=/srv/roachboot/etch Looking up port of RPC 100003/2 on 192.168.100.1 rpcbind: server 192.168.100.1 not responding, […]

TFTP工作本地主机,但不是全局的

我在Centos 7.4上有一个TFTP服务器。 TFTP服务器启动并运行,并尝试访问文件,连接本地主机上运行良好。 但是,如果我尝试从另一台服务器访问TFTP服务器,我会得到一个时间。 防火墙configuration正确,端口可以访问。 cat /etc/xinetd.d/tftp service tftp { socket_type = dgram protocol = udp port = 69 wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 } cat /etc/xinetd.conf defaults { log_type = SYSLOG daemon info […]