Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd January 2005, 02:10 AM
echo Offline
Registered User
 
Join Date: Jan 2005
Posts: 5
Exclamation firewall settings through iptables

hey everybody. i've migrated from the linuxquestions.org site and just registered here. i've been browsing the forums and it seems there are quite a few linux users here who know what they are doing. So i have a question. i have a machine that is running FC2 with no X interface, because my monitor just took a crap on me, and i am trying to figure out how to disable, if at all possible, the firewall settings in iptables. i am setting up nfs between this system and another. so far i have made abosulutely no progress with the firewall thing. however everything else seems to be in order with nfs. Any solutions?? any input would be awesome! i'm anxious to learn more so type away!
Reply With Quote
  #2  
Old 2nd January 2005, 03:43 AM
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
So what you are saying is you have no monitor attached to this machine?
You have another computer with monitor?
Can you connect that monitor to the other computer?

If not then maybe you can get in through the serial port. Its been a long time since I dealt with serial terminals. Don't even know if FC2 is setup that way. Look into that.

Scan the machine with nmap and see if there are any services you can connect to like ssh telnet rsh. If none are there and you have not set them up then that is out of the question.

Pull the drive out install it in the working computer and mount it. Edit the neccessay files and then put back in. That may have issues with mounts since default fedora/redhat uses labels versus defined /dev points.

Put the drive in a Externel USB Enclosure, mount it, edit it, and reinstall it.


If it was Windows it would be a piece of cake. Too many open holes.
Brian1
" Google the Linux way @ http://www.google.com/linux "
Reply With Quote
  #3  
Old 2nd January 2005, 07:34 AM
echo Offline
Registered User
 
Join Date: Jan 2005
Posts: 5
sorry for the miscommunication. i do infact have a monitor in working order on the machine. the fact is that the monitor is pretty old and for some reason cannot display any correct resolution. i pulled it out from under the stairs, i'm lucky it displays a shell
i was curious if i could do any of this soley using the shell. i am trying to learn how to do everything in the shell as it is more efficient. i'll probably have to spend some more time with iptables to really learn how do activate/deactivate the firewall, but i was curious if there was a quick way, bypass all the complicated stuff, and just deactivate the firewall.

Thanks
Reply With Quote
  #4  
Old 2nd January 2005, 05:40 PM
crossfire Offline
Registered User
 
Join Date: Jul 2004
Posts: 97
Quote:
Originally Posted by echo
sorry for the miscommunication. i do infact have a monitor in working order on the machine. the fact is that the monitor is pretty old and for some reason cannot display any correct resolution. i pulled it out from under the stairs, i'm lucky it displays a shell
i was curious if i could do any of this soley using the shell. i am trying to learn how to do everything in the shell as it is more efficient. i'll probably have to spend some more time with iptables to really learn how do activate/deactivate the firewall, but i was curious if there was a quick way, bypass all the complicated stuff, and just deactivate the firewall.

Thanks
You can disable firewall service with:
Code:
#service iptables stop
and edit rules , config with:

Code:
#lokkit        (text mode)

Last edited by crossfire; 12th January 2005 at 04:28 PM.
Reply With Quote
  #5  
Old 2nd January 2005, 09:25 PM
echo Offline
Registered User
 
Join Date: Jan 2005
Posts: 5
thanks for the commands! everything worked great and i can now access and mount my nfs directories.

another thing, what is lokkit? i've never heard of it before. is it a text editor like vim?
Reply With Quote
  #6  
Old 3rd January 2005, 06:34 PM
crossfire Offline
Registered User
 
Join Date: Jul 2004
Posts: 97
Quote:
Originally Posted by echo
thanks for the commands! everything worked great and i can now access and mount my nfs directories.

another thing, what is lokkit? i've never heard of it before. is it a text editor like vim?
Lookit is a config tool that always come with old Redhats, you can set rules and activate/deactivate iptables firewall. Have same firewall options of system-config-securitylevel but in text-mode.
Reply With Quote
  #7  
Old 2nd January 2005, 10:45 AM
ghaefb Offline
Retired Community Manager
 
Join Date: Apr 2004
Location: Slovenia
Age: 31
Posts: 1,713
You can flush all the iptables rules with this command: iptables -F
The firewall is then "disabled"
Check you rules like this: iptables -L
__________________
_ghaefb


blog & sysinfo
Reply With Quote
  #8  
Old 2nd January 2005, 04:09 PM
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
If you read up on iptables you can edit /etc/sysconfig/iptables and create your own. If you have no iptables running you can install webmin and it has a module to create firewall. Then you can login to it using webmin to make changes. Also you can VNC to it once setup as well from other computer and have a gui display if X is still running on the computer. Some info here, more at linuxquestions.org, and lots out on the net to do many things.

Brian1
" Google the Linux way @ http://www.google.com/linux "
Reply With Quote
Reply

Tags
firewall, iptables, settings

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables+Firewall rashid47010 Servers & Networking 3 4th August 2009 01:16 PM
nat & firewall thru iptables jkmartha Security and Privacy 3 16th May 2005 06:43 PM


Current GMT-time: 07:29 (Wednesday, 23-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat