Link to home
Start Free TrialLog in
Avatar of Arrismog
Arrismog

asked on

how do I allow specific ip addresses for xx port using iptables?

Good day experts

I currently have a Websphere Application Server running on Linux SLES 10 SP2, I access the administrative console through port 9060. Although I have enabled security to access the admin console, I would also like to filter access by allowing only certain ip addresses through that port.

Would someone guide me how to accomplish this through iptables? I've already read some docs about iptables and how rules/chains/targets work but I'm still new with this command

Thanks in advance
Avatar of jackiechen858
jackiechen858
Flag of Canada image

edit /etc/sysconfig/SuSEfirewall2

find FW_SERVICES_ACCEPT_EXT, and add something like:
FW_SERVICES_ACCEPT_EXT="aa.bb.cc.dd/24,tcp,9060 "

the restart firewall:
/etc/init.d/SuSEfirewall2_setup restart
or just reload the rule:

/etc/init.d/SuSEfirewall2_setup reload
Avatar of Arrismog
Arrismog

ASKER

@jackiechen858:

Thanks! is there any way to do it by iptables command?

ASKER CERTIFIED SOLUTION
Avatar of jackiechen858
jackiechen858
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It worked, thanks a lot!