LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-28-2003, 06:35 PM   #1
Neomaster
Member
 
Registered: May 2003
Location: Digital world
Posts: 113

Rep: Reputation: 15
Question iptable help


echo -e "\n\tLoading Firewall Rules"
# Enable forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
LAN_IP_NET='192.168.0.1/24'
LAN_IP_NET2='192.168.1.1/24'
LAN_NIC='eth1'
LAN_NIC2='eth3'
#WAN_IP='65.65.96.38'
WAN_NIC='eth0'


I do have eth0 eth1 in my pc with 2 nic cards.I just want to use internet share with my other pc.


this how i write my firewall out so far.




echo -e "\n\tLoading Firewall Rules"
# Enable forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
LAN_NIC eth0
WAN_NIC eth1


AM i doing this right so far?
 
Old 05-28-2003, 06:40 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
you going to ask this question for every four lines of script you add to it. go ahead write the whole thing and come back if there are any errors

all the best
 
Old 05-28-2003, 08:58 PM   #3
Neomaster
Member
 
Registered: May 2003
Location: Digital world
Posts: 113

Original Poster
Rep: Reputation: 15
The prob is that i don't use dsl so i can't use WAN_NIC.SO how can i just use LAN_NIC in my script?That where i lost.
 
Old 05-28-2003, 10:14 PM   #4
Neomaster
Member
 
Registered: May 2003
Location: Digital world
Posts: 113

Original Poster
Rep: Reputation: 15
I forgot to say WAN_IP would be the prob because i don't have dsl.How can i get it to work with dial-up?
 
Old 05-29-2003, 09:56 PM   #5
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
isnt the modem ppp0, you could write all rules and use ppp0 as the device rather than eth0.
 
Old 05-29-2003, 10:13 PM   #6
Neomaster
Member
 
Registered: May 2003
Location: Digital world
Posts: 113

Original Poster
Rep: Reputation: 15
How would i do that?I have 2 nic in mt pc as a gateway
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what is an iptable? Baran Linux - Newbie 7 02-07-2005 06:14 PM
iptable summerfish Linux - Networking 1 07-16-2004 03:28 AM
iptable cristi1979 Linux - Networking 4 06-29-2003 06:54 PM
Iptable Help cirkut5732 Slackware 4 04-11-2003 12:18 AM
iptable help Syntax Linux - General 1 12-30-2002 12:04 AM


All times are GMT -5. The time now is 09:13 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration