LinuxQuestions.org
Visit Jeremy's Blog.
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 10-20-2012, 11:36 AM   #1
4436
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
firewall for slack 14


I have a firewall script that I have been using for several slackware distributions. When I upgraded to slack 14 it locked me out of the internet. My system is:
eth0 connects to the internet
eth1 connects to a router which my wife's computer (WINXP) uses to get to the internet.
You can download (but not read online) my rc.firewall here:
http://www.mediafire.com/?ucckma3muxlfkvg.
Right now I am running w/o a firewall so I would like to fix this situation. If you have a suggestion about what is wrong with my script of if you have a suggestion about a new script I would be grateful.
Thanks.
 
Old 10-20-2012, 08:02 PM   #2
aetratus
LQ Newbie
 
Registered: Jul 2006
Location: Internet
Distribution: Fedora, CentOS, Archlinux
Posts: 27

Rep: Reputation: 6
Use Alien Bob's Firewall Generator: http://www.slackware.com/~alien/efg/index.php
 
1 members found this post helpful.
Old 10-21-2012, 08:04 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,375

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
I had the same problem.
The output from 'ifconfig' has a slightly different format in Slackware 14. This causes a problem in this line.
Quote:
# Determine the external IP automatically:
# ----------------------------------------
#
# The following line will determine your external IP address. This
# line is somewhat complex and confusing but it will also work for
# all NON-English Linux distributions:
#
EXTIP="`$IFCONFIG $EXTIF | $AWK \
/$EXTIF/'{next}//{split($0,a,":");split(a[2],a," ");print a[1];exit}'`"
I am now using this.
Code:
EXTIP="$($IFCONFIG $EXTIF | $GREP -w inet | $AWK '{print $2;exit}')"
 
2 members found this post helpful.
Old 10-21-2012, 04:13 PM   #4
4436
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks, on the advice of others I switched to a firewall generator found at http://www.slackware.com/~alien/efg/.
 
1 members found this post helpful.
  


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
Firewall with Slack 11 cdale77 Slackware 10 08-15-2007 05:04 AM
Slack Update Firewall Sabicas Slackware 9 09-25-2004 10:28 PM
slack firewall divali Linux - Networking 2 11-04-2003 03:52 PM
Firewall with Slack-9 player_2 Linux - Networking 11 10-03-2003 01:35 AM
Slack 9 firewall/security? Manx_UK Slackware 10 06-06-2003 04:14 PM

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

All times are GMT -5. The time now is 02:27 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