iptables: No chain/target/match by that name

chemcat9

Guru
Joined
Apr 19, 2010
Messages
111
Reaction score
4
I'm trying to add two ip addresses to my iptables using the instructions found on the didforsale website:

1. SSH to your PBX
2. Run the following commands:
iptables -A INPUT -s 209.216.15.70 -j ACCEPT
iptables -A INPUT -s 209.216.2.211 -j ACCEPT
iptables -A WHITELIST -s 209.216.15.70 -j ACCEPT
iptables -A WHITELIST -s 209.216.2.211 -j ACCEPT
service iptables save
service iptables restart

... but get the message "iptables: No chain/target/match by that name" when I enter the command "iptables -A WHITELIST -s 209.216.15.70 -j ACCEPT" ... is this of concern? ... did my enteries register with iptables? ... and how can I tell?

Thanks!
 
Do you have a CHAIN for 'WHITELIST' ? Incredible PBX or are you just using the PBXinaFlash ?

If not you need to use -I [input] and then -A [append].

Maybe do a ist and see what's there
iptables -L
iptables -L INPUT
iptables -L WHITELIST

http://linux.die.net/man/8/iptables
 
I goofed ... you are most correct in an observation. Some times two heads aren't better than one, a friend and I just set this up - he thought I ran the incredible script ... and I thought he did. Turns out neither of us did. It's the little things that get ya.

Problem solved.

Thanks!
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top