LinuxQuestions.org
Review your favorite Linux distribution.
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 02-02-2005, 07:32 AM   #1
prue3
LQ Newbie
 
Registered: Jun 2002
Distribution: Redhat 7.3
Posts: 22

Rep: Reputation: 15
how to add internet gateway for eth0 in shorewall


hi,

i am new to shorewall..... how do i add a gateway to eth0? eth0 is my wan nic, the static ip is 218.218.94.195, my gateway is 218.218.94.193...

how to add a policy to route my ip to go thru the gateway?

Please help!!
 
Old 02-02-2005, 07:24 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
To add a gateway, you want to use the route command to manipulate the routing table. Iptables/shorewall is more for firewalling and manipulating packet header info. The actual routing decisions are still carried out by consulting the routing table info.
 
Old 02-02-2005, 08:54 PM   #3
prue3
LQ Newbie
 
Registered: Jun 2002
Distribution: Redhat 7.3
Posts: 22

Original Poster
Rep: Reputation: 15
thanks for your reply
 
Old 02-02-2005, 09:17 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Sure. Take a look at the route man page and post any followup questions (syntax for route command is a little weird).
 
Old 02-03-2005, 12:39 AM   #5
prue3
LQ Newbie
 
Registered: Jun 2002
Distribution: Redhat 7.3
Posts: 22

Original Poster
Rep: Reputation: 15
hi,

i use the route to add the gateway,

so my kernel ip routing table as below,

Destination Gateway Genmask Iface
218.218.94.195 * 255.255.255.224 eth0
192.168.42.0 * 255.255.255.0 eth1
default 218.218.94.193 eth0



I try to browse internet from one of my workstation is give me error msg, cannot find dns server.

any idea, what i have miss out?

please advice....
 
  


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
shorewall shutting down eth0 varun_saa Mandriva 1 12-30-2004 08:25 AM
mandrake 9.1pro gateway+shorewall can't play games robokiller Linux - Networking 0 09-25-2004 03:15 AM
finding gateway address on eth0 MHouse Linux - Newbie 9 03-05-2004 06:35 AM
Gateway doesn't show up under eth0. bah. 00gab00ga Linux - Networking 19 03-03-2004 05:03 PM
All PCs behind router with one eth0 each. Shorewall ACCEPTetho:192.168.1.0/24 - bad ? cmisip Linux - Security 4 09-20-2003 02:13 AM

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

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