Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
>echo 1 > /proc/sys/net/ipv4/ip_forward
>iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
>iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT
>iptables -P INPUT DROP
The external interface is eth0 and the internal one is eth1. What I'm trying to do is get my windows box (which is behind the firewall) to use iTunes to connect to other people on the other side of the box (i.e. on the larger network I am connected to). I read a post from a Mac user who said that he had port 3689 open on his firewall for iTunes sharing. I tried to punch a hole in my firewall at port 3689 but I'm not sure which chain it's supposed to be in and I'm also no sure weather it's supposed to be destination port or source port. Anyway, here's a listing of my 'iptables -L' command. It's kind of a mess.
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:3689
ACCEPT tcp -- anywhere anywhere tcp spt:3689
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere state NEW
I'm kinda "natting." I'm using IP Masquerading which, if I'm not mistaken, is not exactly the same as NAT. Anyway, the firewall is being used as a DHCP server for the internal network too. It will assign IP addresses from 192.168.0.2 - 192.168.0.200 to any system plugged into the internal network.