LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-22-2003, 05:26 PM   #1
gruger
Member
 
Registered: May 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 51

Rep: Reputation: 15
Question Iptables-save ???


Hi all,

first of all, sorry for the typos.


I'm a real newbie at linux so I am trying to get help on this forum.


Here it comes.

I am trying to set up my SSH daemon so I can connect from my workplace to my Box at home to do some configuration and stuff. I did setup the sshd_config file to port 443 so I can connect true a secure connection,this is necesary because all the other ports are blokked on our firewall.

So I setup my iptables and block some ports and allow port 80, 443 , ...
Then I do
>> iptables-save << and i don't get an error so I think everything is fine.
I reboot my machine and all my iptables are gone.

Connecting to port 443, nope. To port 22, YEP???
In ssd_config te port was ... 443???

How can I fix this I am pretty down of the prob...


Cheers





Trying to be the best is the way to get better in what you are trying
 
Old 05-22-2003, 06:03 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
its better if you download a wrapper for the iptables and use it. that way it will be easy for you. there are very good wrappers out there

firestarter, fwbuilder, guarddog .....

install them and you can rock on

get over the pratice of rebooting the machine after every install or setup change. you can start and stop individual services in Linux
 
Old 05-22-2003, 07:07 PM   #3
gruger
Member
 
Registered: May 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 51

Original Poster
Rep: Reputation: 15
Now I did find in the source off sshd the "rule" >> ssh bound to port 22 <<

I really want to start working from the command line since I'm using DOS since my young days. Can anybody tell me maybe there is a bug in the redhat 8.0 iptables engine??


Getting sleepy but keeping the spirit...
 
Old 05-23-2003, 06:23 PM   #4
gruger
Member
 
Registered: May 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 51

Original Poster
Rep: Reputation: 15
did find it

iptables-restore etc/sysconfig/iptables did the trick


also the sshd prob is fixt
 
  


Reply



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
Save iptables filters yhus Red Hat 3 07-30-2005 04:01 AM
Where should I save this iptables? wardialer Linux - Newbie 2 02-12-2005 04:10 AM
iptables save rules Osten Debian 1 02-10-2004 04:53 PM
iptables save commands are not working tarheel92x Linux - Networking 1 01-19-2004 05:16 PM
iptables-save doen't! Smerk Linux - General 4 03-13-2003 10:39 AM

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

All times are GMT -5. The time now is 05:54 AM.

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
Open Source Consulting | Domain Registration