Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Just tell me that whether input denotes that from lan to internet
output denotes - packet comes from internet to lan ???
No, INPUT denotes a chain, path, way, stack or queue within which all the packets traverse which are destined for your host (could be any interface). Any packet meant for your box(any interface) will come into INPUT & hence to apply any rule at these packets.. we use INPUT chain.
Similarly OUTPUT denotes as any packet which has been originating by your host(box, computer).
Now i want to enable web browsing to my lan
Thing is they want to access internet only in internet explorer or mozial
Do you have any proxy server setup @ your box ? (or if not what are your plans/how do you provide browsing access to your lan users)
probably if you have any proxy server setup.. You got to run,
Code:
iptables -A INPUT -p tcp -i <lan-eth-interface> -s lan-ip/netmask --dport <proxy-port> -j ACCEPT
& iptables -A OUTPUT -o <lan-eth-interface> -m state --state ESTABLISHED,RELATED -j ACCEPT
or you could use masquareding for all your users..
Run
my local lan user are getting internet access via gatewayy
gateway machine is iptable
so tell me how can i enable only
broswing for my local lan
Thanks & Regards
winxandlinx
then you can use masquareding as suggested in my previous post or if you have a static ip address at your internet interface, you should opt for SNATing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.