Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
............................................
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.