• Skip to primary navigation
  • Skip to main content
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Allow wget and yum in iptable

June 28, 2013 by Sharad Chhetri Leave a Comment

Allow wget in iptable

Today when I was trying to do wget from my server I found it did not allow me to do it. Then I check with yum command also and found the error message "Couldn't resolve host 'some.domainname.com'". It seems the iptables rule in Server is not allowing to wget and yum.
I set new allow rule for DNS i.e port no. 53 and it works.

IPTABLE version : iptables-1.4.7-9.el6.x86_64

iptables -A OUTPUT -p udp -m udp --dport 53 -j ACCEPT

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. wget : continue download of the file
  2. Allow only members of Wheel group to use su command on RHEL/CentOS
  3. Allow root ssh login in FreeBSD 9.0
  4. Installing Nagios-3.5.0 in CentOS 6.4 using yum
  5. Install libjpegtran by using yum command in CentOS 6.x
  6. Yum Error database disk image is malformed
  7. Yum command to download rpm file without installing in linux system
  8. There are unfinished transactions remaining. You might consider running yum-complete-transaction
  9. Install MariaDB Server 10 on CentOS 7 and RHEL 7 by using yum
  10. Install php 5.4 on CentOS 6 with yum command

Filed Under: Linux, Tips And Tricks Tagged With: iptable

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy