Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Unfortunately my linux server crashed a few days ago after an electricity shortage. The crash caused some bad blocks on a partition and after recovering most of my sh files I realized that the firewall script was gone without a trace. I found a backup but it wasn't updated enough so I lost all the rules regarding redirection.
It has been years since I last modified the file (I couldn't guess that the bad block would hit exactly the area where the firewall script was - I deserve it, I know!).
Ok. I need right now to get the box up by issuing the rules again.
Here is the configuration: two nics cards. One (eth0) with a public ip address that connects to the world. The second one (eth1) is 192.168.1.1 All other machines take ips from a dhcp server starting with 192.168.1.X
I need to connect 192.168.0.7 port 22 to eth0:43022.
The old copy of firewall allows all internal boxes to connect the internet.
Sorry for such a simple question (probably it has been answered several times but I couldn't find exactly what I want in the web - Perhaps the reason is my frustation and dispair!).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.