LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-12-2005, 12:38 AM   #61
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30

I did a 'su' before the whole thing, and after the ./firewall command, it gave me this:

Code:
[vin001@localhost vin001]$ su
Password:
[root@localhost vin001]# cd /home/vin001/Documents
[root@localhost Documents]# chmod +x firewall
[root@localhost Documents]# ./firewall
[root@localhost Documents]#
It gave me nothing this time. How come??? I am far from over this. Looks like Im going to be up for a long long time.
 
Old 02-12-2005, 12:38 AM   #62
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally posted by wardialer
What I mean do I have to an 'su' BEFORE the whole command you gave me or part of the command do I need to an 'su'????
i didn't give you ONE command... i gave you a series of commands... here you go again:

THE COMMANDS IN RED REQUIRE ROOT TO DO THEM:

Code:
cd /home/myusername/Documents

chmod +x firewall

./firewall

service iptables save

reboot
and yes, that means you need to "su" before the red commands...

 
Old 02-12-2005, 12:40 AM   #63
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally posted by wardialer
It gave me nothing this time. How come???
that's perfectly fine, it's not supposed to give you anything cuz there nothnig in the script that says to print anything to the screen... relax...

post the output of "iptables -L" right now before you do the "service iptables save" so we can see...

Last edited by win32sux; 02-12-2005 at 12:42 AM.
 
Old 02-12-2005, 12:41 AM   #64
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
Code:
[vin001@localhost vin001]$ su
Password:
[root@localhost vin001]# cd /home/vin001/Documents
[root@localhost Documents]# chmod +x firewall
[root@localhost Documents]# ./firewall
[root@localhost Documents]#
It gave me this when I did an 'su' before these commands what you posted. It did not give any output this time
 
Old 02-12-2005, 12:42 AM   #65
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
that's perfect... let's see the output of "iptables -L" now...
 
Old 02-12-2005, 12:43 AM   #66
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
Code:
root@localhost vin001]# cd /home/vin001/Documents
[root@localhost Documents]# chmod +x firewall
[root@localhost Documents]# ./firewall
[root@localhost Documents]# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere           state INVALID
ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@localhost Documents]#
Ok, then whats next????? ARE WE THERE YET?????

Last edited by wardialer; 02-12-2005 at 12:44 AM.
 
Old 02-12-2005, 12:45 AM   #67
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
EXCELLENT. now do the:

Code:
service iptables save
and make sure you remove your old iptables stuff from your rc.local file...

then reboot and do the "iptables -L" thing again...


Last edited by win32sux; 02-12-2005 at 12:46 AM.
 
Old 02-12-2005, 12:47 AM   #68
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
SHOULD I EXIT OUT WHERE I LEFT OFF IN THE KONSOLE OR DO THE SERVICE IPTABLES SAVE AND THE REBOOT COMMAND IN THE SAME KOSOLE AS WERE I LEFT OFF???


sHOULD i DO USE THE REBOOT COMMAND IN THE KOSOLE??? AND WHAT IS THE REBOOT COMMAND???

Last edited by wardialer; 02-12-2005 at 12:48 AM.
 
Old 02-12-2005, 12:48 AM   #69
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally posted by wardialer
WHAT IS THE REBOOT COMMAND???
GUESS.
 
Old 02-12-2005, 12:49 AM   #70
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
SHOULD I EXIT OUT WHERE I LEFT OFF IN THE KONSOLE OR DO THE SERVICE IPTABLES SAVE AND THE REBOOT COMMAND IN THE SAME KOSOLE AS WERE I LEFT OFF AFTER THE IPTABLES -L ???


sHOULD i DO USE THE REBOOT COMMAND IN THE KOSOLE??? AND WHAT IS THE REBOOT COMMAND???


UMMMMM...... shutdown -r ???? or shutdown -r now????
 
Old 02-12-2005, 12:50 AM   #71
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally posted by wardialer
UMMMMM...... shutdown -r ???? or shutdown -r now????
YES. whichever. you choose. hurry, i'm dying here.

"shutdown -r now" works fine...

 
Old 02-12-2005, 12:51 AM   #72
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
oK HOLD ON...
 
Old 02-12-2005, 12:52 AM   #73
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
Quote:
Originally posted by wardialer
SHOULD I EXIT OUT WHERE I LEFT OFF IN THE KONSOLE OR DO THE SERVICE IPTABLES SAVE AND THE REBOOT COMMAND IN THE SAME KOSOLE AS WERE I LEFT OFF AFTER THE IPTABLES -L ???
you don't need to exit anything, just stay in the same console and issue the command from there...

DID YOU CLEAR YOUR rc.local FILE???
 
Old 02-12-2005, 01:00 AM   #74
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 379Reputation: 379Reputation: 379Reputation: 379
did you go on a smoke break or something??
 
Old 02-12-2005, 01:01 AM   #75
wardialer
Member
 
Registered: Sep 2004
Distribution: SUSE Linux Pro 9.3
Posts: 375

Original Poster
Rep: Reputation: 30
Code:
[vin001@localhost vin001]$ iptables -L
bash: iptables: command not found
[vin001@localhost vin001]$ su
Password:
[root@localhost vin001]# iptables -L
Chain INPUT (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere           state INVALID
ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
[root@localhost vin001]#
Please tell me that is OK????

And before we go, I would like you to verify that this script of yours does Stateful Packet Inspection. I want a script that does exactly the same as a Linksys Router, and that is Stateful packet Inspection....

And will this stealth ALL my ports??? I hope that this is a powerful firewall script that you gave me. After all this trouble.

Last edited by wardialer; 02-12-2005 at 01:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall script simcox1 Linux - Security 7 11-13-2005 12:08 PM
slackware's /etc/rc.d/rc.firewall equivalent ||| firewall script startup win32sux Debian 1 03-06-2004 09:15 PM
Firewall script help!!!! cirkut5732 Linux - Newbie 8 04-17-2003 06:09 PM
Could you look over my firewall script please... Grim Reaper Linux - Networking 8 03-26-2003 03:33 AM
Firewall script help jfall Linux - Networking 6 10-23-2002 03:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration