How to disable firewall or IP tables on Ubuntu Linux server
How to disable firewall or IP tables on Ubuntu Linux server
Login on the console with a sudo user
Get a .co.ke domain from KSh 299
Search for your business name to see which extensions are available.
First-year price for eligible registrations.
- 500+ domain extensions
- Low registration and renewal prices
- One-click push to Cloudflare
Approach 1: Simple
To List UFW (default firewall on Ubuntu) run the following command
$ sudo ufw status verbose
Sample output
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), deny (routed)
New profiles: skip
To Action From
— —— —-
66.61.246.79 80/tcp ALLOW IN Anywhere
66.61.246.78 80/tcp ALLOW IN Anywhere
To disable UFW firewall run the following command
$ sudo ufw disable
Old school Approach
Alternatively, run the following command to list any existing firewall rules
$ sudo iptables -L –n
Sample output
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT udp — 0.0.0.0/0 0.0.0.0/0 udp dpt:53
ACCEPT tcp — 0.0.0.0/0 0.0.0.0/0 tcp dpt:53
ACCEPT udp — 0.0.0.0/0 0.0.0.0/0 udp dpt:67
ACCEPT tcp — 0.0.0.0/0 0.0.0.0/0 tcp dpt:67
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all — 0.0.0.0/0 172.148.102.0/24 state RELATED,ESTABLISHED
ACCEPT all — 172.148.102.0/24 0.0.0.0/0
ACCEPT all — 0.0.0.0/0 0.0.0.0/0
REJECT all — 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all — 0.0.0.0/0 0.0.0.0/0 reject-with icmp-port-unreachable
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
To stop and Flush all the rules run the following commands
$ sudo iptables -X
$ sudo iptables -t nat -F
$ sudo iptables -t nat -X
$ sudo iptables -t mangle -F
$ sudo iptables -t mangle -X
$ sudo iptables -P INPUT ACCEPT
$ sudo iptables -P FORWARD ACCEPT
$ sudo iptables -P OUTPUT ACCEPT
Start With This
Best value compares each plan's lowest monthly equivalent; contract lengths can differ.
WebHosting Starter
Kshs 188/mo
Kshs 6,768 billed every 3 yearsSave KES 11,232
Renews at Kshs 188/month
- Hosts 10 Websites
- WordPress Hosting & other CMS
- ~25 000 visits monthly
- Free Website Migrations
- 30 GiB SSD Storage
- 1-click Installer
- Free automated SSL
- Unlimited bandwidth
- Unlimited Email Accounts
- Free Daily backups
- Free Website Builder
- Free Website Templates
- Python and NodeJS Support
- Shared IP Address
- Powered by Cpanel
Explore web hosting
Compare hosting options for your website when you’re ready.
See plans and pricing
Domain SearchInstantly check and register your preferred domain name
Web Hosting
cPanel HostingHosting powered by cPanel (Most user friendly)
WordPress HostingHost your WordPress website with fast, secure, and affordable WordPress hosting in Kenya.
KE Domains
Reseller HostingStart your own hosting business without tech hustles
Windows HostingOptimized for Windows-based applications and sites.
Free Domain
Affiliate ProgramEarn commissions by referring customers to our platforms
Free HostingTest our SSD Hosting for free, for life (1GB storage)
Domain TransferMove your domain to us with zero downtime and full control
All DomainsBrowse and register domain extensions from around the world
.Com Domain
WhoisLook up domain ownership, expiry dates, and registrar information
VPS Hosting
Managed VPSNon techy? Opt for fully managed VPS server
Dedicated ServersEnjoy unmatched power and control with your own physical server.