LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2007, 05:33 AM   #1
rcm_b05
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Rep: Reputation: 0
Iptables on gateway


1)..................................
I hav several clients to this gw.
I want to use IPTABLES for firewall. I downloaded n installed.
iptables comand is working on prompt.

linux> service iptables status
service: no such service iptables

what could be problem???

2)---------------------------

Also if i flush iptables tables to write my own, thn this comp is getting disconnected from LAN

linux> ping 172.31.1.1
PING 172.31.1.1 (172.31.1.1) 56(84) bytes of data.
64 bytes from 172.31.1.1: icmp_seq=1 ttl=63 time=0.517 ms
64 bytes from 172.31.1.1: icmp_seq=2 ttl=63 time=0.501 ms
64 bytes from 172.31.1.1: icmp_seq=3 ttl=63 time=0.504 ms

--- 172.31.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.501/0.507/0.517/0.019 ms

linux> iptables -F
linux> ping 172.31.1.1
no response
............................................
 
Old 11-16-2007, 05:47 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
1) iptables itself doesn't contain a service. a service is something that is distro specific, so the iptables project in itself can't provide it. an iptables "service" isn't required at all though. the act of "starting" iptables is to apply a set of rules, it doesn't actually run anythign in the background like an apache service or something like that.

2) you've said nothing useful about your topology or ruleset... can't help.
 
Old 11-16-2007, 11:18 PM   #3
rcm_b05
LQ Newbie
 
Registered: Oct 2007
Posts: 9

Original Poster
Rep: Reputation: 0
my gw on which this iptables is running is 172.25.2.1
172.31.1.1 is a comp on my network.
172.25.2.22 is client for gw.

my prob here is
if i flush iptables by 'iptables -F' gw is getting off LAN. i.e cant ping 31.1.1

ok ..I wll it put other way.

please tell me how to save iptables rules which i hav added?
Also how to make my rules to get implemented on network restart?( this to avoid writing rules everytime i restart network)
 
  


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
Gateway security with iptables crashsystems Linux - Security 8 10-05-2006 01:27 PM
Home gateway + iptables kurrupt Linux - Security 2 08-08-2005 07:48 AM
Linux gateway with iptables - Everybody help me, please b:z Linux - Networking 14 03-31-2005 05:01 AM
Linux gateway with iptables - Everybody help me, please b:z Linux - Security 1 03-30-2005 06:58 PM
iptables rules on gateway alon005 Linux - Security 7 10-05-2004 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:12 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
Open Source Consulting | Domain Registration