[Wylug-help] LAN/samba problems

Anne Wilson cannewilson at googlemail.com
Sat Feb 9 11:09:16 GMT 2008


On Saturday 09 February 2008 10:49, Stephen Patterson wrote:
> On 09 Feb 08, Anne Wilson (cannewilson at googlemail.com) wrote:
> > iptables configuration is new to me, and I'm struggling with the man
> > pages. As usual they are full of info for the initiated, but
> > incomprehensible to a beginner :-)  Could you please give me a line for
> > port 901?
>
> iptables -A INPUT -p tcp --dport 901 -j ACCEPT
>
Thanks

> > I replaced them with the following, as recommended on the CentOS list:
> >
> > -A RH-Firewall-1-INPUT -p udp -m udp -s 192.168.0.0/24 --dport 137 -j
> > ACCEPT When trying to iptables-restore I got
> >
> > iptables-restore v1.3.5: Unknown arg `-s'
>
> Try without '-m udp', the rest looks decent although I've not seen -s
> used with network ranges like that before.
>
Actually, the problem was much simpler.  An EOL had been inserted.  Now that's 
removed the restore has been accepted.  However, restarting the network gives

Bringing up loopback interface:                            [  OK  ]
Bringing up interface borg2:  RTNETLINK answers: File exists
Error adding address 192.168.0.40 for eth0.

Worrying :-(

Anne
> I've written a couple of iptables guides that you may find useful
>
> http://patter.mine.nu/index.pl?s=Linux;p=firewall.html
> http://patter.mine.nu/index.pl?s=Linux;p=iptables.html



More information about the Wylug-help mailing list