Current time: 11-17-2024, 07:24 AM Hello There, Guest! (LoginRegister)


Post Reply 
Iptables Rules?
Author Message
ciccio Offline


Posts: 4
Joined: Feb 2009
Reputation: 0
Post: #1
Smile Iptables Rules?
Hi,
someone knows tell me what is the path of the configuration file with the iptables rules?

thanks in advance Rolleyes
02-13-2009 10:15 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Iptables Rules?
You mean "ispcp_network" ?
This is in Debian under /etc/init.d/ispcp_network

Greez BeNe
02-13-2009 10:23 PM
Visit this user's website Find all posts by this user Quote this message in a reply
ciccio Offline


Posts: 4
Joined: Feb 2009
Reputation: 0
Post: #3
RE: Iptables Rules?
I tried to add on ispcp_network the door what want to open but doesn' t work..
[/b]
${IPTABLES} -I ISPCP_INPUT -p tcp --dport 8090 2>> "$LOGFILE"
${IPTABLES} -I ISPCP_OUTPUT -p tcp --sport 8090 2>> "$LOGFILE"


(02-13-2009 10:23 PM)BeNe Wrote:  You mean "ispcp_network" ?
This is in Debian under /etc/init.d/ispcp_network

Greez BeNe

if launch nmap localhost port 8090 does not see, but if it launch nmap -p8090 says open..
But it does not work Sad
(This post was last modified: 02-14-2009 12:29 AM by ciccio.)
02-14-2009 12:15 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Iptables Rules?
Best would be if you write an own Shell Script that runs during the Boot.
Is more simple and should work. Next is that there will be no problem in the future when you upgrades ispCP..

Greez BeNe
02-14-2009 12:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ciccio Offline


Posts: 4
Joined: Feb 2009
Reputation: 0
Post: #5
RE: Iptables Rules?
Can I not use ispcp_network and use only my iptables script?

things can go wrong?
I do not think so ..
02-14-2009 01:21 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: Iptables Rules?
Of course, this should work to add it to the ispCP Script.
But i do it on most projects by an own Script, because of updates and such things.

Quote:if launch nmap localhost port 8090 does not see, but if it launch nmap -p8090 says open..
Please post the Output of:
Code:
# iptables -nvL

Greez BeNe
02-14-2009 02:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ciccio Offline


Posts: 4
Joined: Feb 2009
Reputation: 0
Post: #7
RE: Iptables Rules?
I created an init.d script with the rules that I need like this:
/sbin/iptables -I INPUT -p tcp --dport 8090 -j ACCEPT

now everything seems to work ..

if I want to eliminate rules of ispcp anduse my script only, as I do?
I erased from runlevel at boot ispcp_network but are charged the same to its rules, however I do not understand from where..

(02-14-2009 02:08 AM)BeNe Wrote:  Of course, this should work to add it to the ispCP Script.
But i do it on most projects by an own Script, because of updates and such things.

Quote:if launch nmap localhost port 8090 does not see, but if it launch nmap -p8090 says open..
Please post the Output of:
Code:
# iptables -nvL

Greez BeNe
02-14-2009 02:29 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)