Wednesday, January 7, 2009

How to enable netbackup ports in iptables.

Step1.Edit /etc/sysconfig/iptables
$sudo vi /etc/sysconfig/iptables
Append below entries.
-A INPUT -p tcp -i --dport 13782 -j ACCEPT-A INPUT -p tcp -i --dport 13724 -j ACCEPT
step 2:Refresh iptable configuration
$sudo /sbin/iptables-restore < ./iptables
step3:Verify these ruleas are loaded
$ sudo /sbin/iptables --listChain INPUT (policy ACCEPT)target prot opt source destinationRH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)target prot opt source destinationRH-Firewall-1-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)target prot opt source destinationACCEPT all -- anywhere anywhereACCEPT icmp -- anywhere anywhere icmp anyACCEPT esp -- anywhere anywhereACCEPT ah -- anywhere anywhereACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdnsACCEPT udp -- anywhere anywhere udp dpt:ippACCEPT tcp -- anywhere anywhere tcp dpt:ippACCEPT all -- anywhere anywhere state RELATED,ESTABLISHEDACCEPT tcp -- anywhere anywhere state NEW tcp dpt:sshACCEPT tcp -- anywhere anywhere tcp dpt:bpcdACCEPT tcp -- anywhere anywhere tcp dpt:vnetdREJECT all -- anywhere anywhere reject-with icmp-host-prohibited

1 comment: