qacafe - ip test solutions
Knowledge Base > BuddyWeb > How do I setup iptables for BuddyWeb?

How do I setup iptables for BuddyWeb?

If you are using iptables to add firewall filtering to your Linux host running CDRouter and BuddyWeb, you may need to add new rules to allow remote hosts to access BuddyWeb.

Make sure you add a new line to accept TCP for the BuddyWeb ports for HTTP and HTTPS access. By default, BuddyWeb defaults to 8015 for HTTP access and 8016 for HTTPS access.

The iptables configuration file can be found at /etc/sysconfig/iptables. Make sure you add the lines below or other lines that will granted access.

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8015 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8016 -j ACCEPT
Once these rules have been added, you will need to restart the iptables service by running /etc/init.d/iptables restart.
[root@fc4 sysconfig]# /etc/init.d/iptables restart
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
Applying iptables firewall rules:                          [  OK  ]
[root@fc4 sysconfig]#