#cat /tftpboot/rules ri ^[a-z]: # Remove “drive letters” rg \\ / # Convert backslashes to slashes rg \# @ # Convert hash marks to @ signs rg /../ /..no../ # Convert /../ to /..no../ rg A a rg B b rg C c rg D d rg E e rg F f rg G g rg H h rg I i rg J j rg K k rg L l rg M m rg N n rg O o rg P p rg Q q rg R r rg S s rg T t rg U u rg V v rg W w rg X x rg Y y rg Z z r ^/(.*) \1
再输入:wq保存退出,然后修改tftp配置文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#cat /etc/xinetd.d/tftp service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -m /tftpboot/rules -s /tftpboot per_source = 11 cps = 100 2 flags = IPv4 }