I created a script something like this: #!/bin/bash echo "------- IPTABLES ----" iptables -L -v --line-numbers echo "------- NAT ----------" iptables -t nat -L PREROUTING -v --line-numbers iptables -t nat -L POSTROUTING -v --line-numbers iptables -t nat -L OUTPUT -v --line-numbers echo "----- USER NAT- ---" iptables -t nat -L userchain -v --line-numbers
I find the line numbers very useful when making changes. You could add a -n before the -v to list the rules with ip address only. (No DNS lookup) [EMAIL PROTECTED] wrote: > iptables -L -n -t nat > > lc. > > ----- Mensaje Original ----- > De: root <[EMAIL PROTECTED]> > Fecha: Lunes, Febrero 25, 2002 8:32 pm > Asunto: To Rusty Russell > > > > > Hi mate > > > > I have read everything you and others have written on iptables and > > nat but > > I am buggered if I can get the rules I have put in for > > masquerading to > > show up. > > What I mean is in good old ipchains ipchains -L showed all my > > rules masq > > included. Even though all seems to be working I cant figure out > > how to get > > these rules to show up. > > The other detail I am a bit stuck on is the iptable-restore can > > you point > > me to some docs I have missed cause I cant find a mention except > > in my > > error messages. > > I am a dickhead when it comes to this stuff but I am doing a > > better job > > then the uni goose I hired for a squillion a year to do it for me > > so have > > pity. > > Terry Antonio > > > > > >
