I have xinet tftp running on centos 5.1 It seems to be running on the local network eht0 fine. My box has 2 nics. however when I connect to eth1 for tftp I get: in.tftpd[5084]: tftpd: read(ack): Connection refused How can I get tftp working on BOTH eth0 and eth1 for my phone config files. man page for in.tftpd says it automatically runs for all local networks on port 69. Is eth1 not a local network? How do I get tftp to response on eth1? Thanks, Jerry
On Mon, Apr 28, 2008 at 11:07 AM, Jerry Geis <geisj at pagestation.com> wrote:> I have xinet tftp running on centos 5.1 > > It seems to be running on the local network eht0 fine. My box has 2 nics. > however when I connect to eth1 for tftp I get: > > in.tftpd[5084]: tftpd: read(ack): Connection refused > > How can I get tftp working on BOTH eth0 and eth1 for my phone config files. > > man page for in.tftpd says it automatically runs for all local networks > on port 69. > Is eth1 not a local network? How do I get tftp to response on eth1? > > Thanks, > > Jerry >Sounds like a firewall issue. Thanks, Steve Totaro
> > On Mon, Apr 28, 2008 at 11:07 AM, Jerry Geis <geisj at pagestation.com <http://lists.digium.com/mailman/listinfo/asterisk-users>> wrote: > >/ I have xinet tftp running on centos 5.1 > />/ > />/ It seems to be running on the local network eht0 fine. My box has 2 nics. > />/ however when I connect to eth1 for tftp I get: > />/ > />/ in.tftpd[5084]: tftpd: read(ack): Connection refused > />/ > />/ How can I get tftp working on BOTH eth0 and eth1 for my phone config files. > />/ > />/ man page for in.tftpd says it automatically runs for all local networks > />/ on port 69. > />/ Is eth1 not a local network? How do I get tftp to response on eth1? > />/ > />/ Thanks, > />/ > />/ Jerry > />/ > / > Sounds like a firewall issue.Steve, I have tried it with and without the firewall. Behavior is the same. service iptables stop is what I did. Anything else to try or look at? Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080428/9d17dd68/attachment.htm
Xinetd may have bound the service to a particular IP address. Look at your Xinetd.d config. ________________________________ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jerry Geis Sent: Monday, April 28, 2008 12:12 PM To: asterisk-users at lists.digium.com Subject: Re: [asterisk-users] tftp issue On Mon, Apr 28, 2008 at 11:07 AM, Jerry Geis <geisj at pagestation.com <http://lists.digium.com/mailman/listinfo/asterisk-users> > wrote: > I have xinet tftp running on centos 5.1 > > It seems to be running on the local network eht0 fine. My box has 2 nics. > however when I connect to eth1 for tftp I get: > > in.tftpd[5084]: tftpd: read(ack): Connection refused > > How can I get tftp working on BOTH eth0 and eth1 for my phone config files. > > man page for in.tftpd says it automatically runs for all local networks > on port 69. > Is eth1 not a local network? How do I get tftp to response on eth1? > > Thanks, > > Jerry > Sounds like a firewall issue. Steve, I have tried it with and without the firewall. Behavior is the same. service iptables stop is what I did. Anything else to try or look at? Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080428/d0804fb8/attachment.htm
Jerry Geis wrote:> I have xinet tftp running on centos 5.1 > > It seems to be running on the local network eht0 fine. My box has 2 nics. > however when I connect to eth1 for tftp I get: > > in.tftpd[5084]: tftpd: read(ack): Connection refused > > How can I get tftp working on BOTH eth0 and eth1 for my phone config files. >Does netstat -anp |grep :69 show a 0.0.0.0 ?> man page for in.tftpd says it automatically runs for all local networks > on port 69. > Is eth1 not a local network? How do I get tftp to response on eth1? > > Thanks, > > JerryBails> > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
The netstat show 0.0.0.0 netstat -anp | grep :69 udp 0 0 0.0.0.0:69 0.0.0.0:* 4007/xinetd ---------------------- cat /etc/xinetd.d/tftp # default: off # description: The tftp server serves files using the trivial file transfer \ # protocol. The tftp protocol is often used to boot diskless \ # workstations, download configuration files to network-aware printers, \ # and to start the installation process for some operating systems. service tftp { socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -v -v -v -v -s /tftpboot disable = no per_source = 11 cps = 100 2 flags = IPv4 } I dont see any specific binding. I have not been able to find a way to get tftp to work on both eth0 and eth1. Thanks, Jerry
> Try having a look at the settings by running 'lokkit' or > 'system-config-security-level-tui' from the command lin - ensure that > the firewall is disabled from there also, and turn off SELinux and see > if that makes any difference. > > RobertRobert, I have turned off "service iptables stop" and I am running with selinux=off or disabled in the config file. jerry
> > Check your /etc/xinetd.conf file and see if the bind= line is blank or > contains only one interface by some chance. Blank should cause xinetd > to bind to all interfaces. Also, do you bring up eth1 at startup or do > you bring it up manually after boot? If it's brought up after boot, > then you may need to restart xinetd (and any other process than needs to > bind both nics) before it will see both interfaces. > > -BrentBrent, below is the file. Looks good to me... Also Both networks start at boot. Nothing is manual on this box at all. ---------------------------------- # Simple configuration file for xinetd # # Some defaults, and include /etc/xinetd.d/ defaults { instances = 60 log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST cps = 25 30 } includedir /etc/xinetd.d
Jerry Geis wrote:> > Brent, below is the file. Looks good to me... Also Both networks start > at boot. Nothing is manual on this box at all. > > ---------------------------------- > > # Simple configuration file for xinetd > # > # Some defaults, and include /etc/xinetd.d/ > > defaults > { > instances = 60 > log_type = SYSLOG authpriv > log_on_success = HOST PID > log_on_failure = HOST > cps = 25 30 > } > > includedir /etc/xinetd.dLooks good to me. Try this: after doing the service iptables stop do the following and see if there are any rules left: iptables -L iptables -t nat -L iptables -t mangle -L if there are any rules at all listed, replace the -L with -F and re-run the commands. -Brent
> > Looks good to me. Try this: after doing the service iptables stop do > the following and see if there are any rules left: > > iptables -L > iptables -t nat -L > iptables -t mangle -L > > if there are any rules at all listed, replace the -L with -F and re-run > the commands. > > -BrentRan each of the command and all three had no entries. Jerry
Jerry Geis wrote:> I have xinet tftp running on centos 5.1 > > It seems to be running on the local network eht0 fine. My box has 2 nics. > however when I connect to eth1 for tftp I get: > > in.tftpd[5084]: tftpd: read(ack): Connection refused > > How can I get tftp working on BOTH eth0 and eth1 for my phone config files. > > man page for in.tftpd says it automatically runs for all local networks > on port 69. > Is eth1 not a local network? How do I get tftp to response on eth1?Which networks are connected to each card? What is the IP/subnet of the client? You could be connecting through eth1 to tftpd, but the server is sending the packet back out eth0. The client would then refuse the connection as its coming from the IP address of eth0.
Jerry Geis wrote:> I have xinet tftp running on centos 5.1 > > It seems to be running on the local network eht0 fine. My box has 2 nics. > however when I connect to eth1 for tftp I get: > > in.tftpd[5084]: tftpd: read(ack): Connection refused > > How can I get tftp working on BOTH eth0 and eth1 for my phone config > files. > > man page for in.tftpd says it automatically runs for all local > networks on port 69. > Is eth1 not a local network? How do I get tftp to response on eth1? > > Thanks, > > Jerry >Sorry - I got I first have to do "yum install tftp-server" this installs xinetd... Its still early.... Jerry