LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Iptables-save ??? (https://www.linuxquestions.org/questions/linux-security-4/iptables-save-61246/)

gruger 05-22-2003 05:26 PM

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

:newbie:



Trying to be the best is the way to get better in what you are trying

manthram 05-22-2003 06:03 PM

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

gruger 05-22-2003 07:07 PM

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...:o

gruger 05-23-2003 06:23 PM

did find it

iptables-restore etc/sysconfig/iptables did the trick


also the sshd prob is fixt


All times are GMT -5. The time now is 01:44 AM.