Kirkwood, David A. | 7 Apr 22:13 2009
Picon

Linux system as a router

How do I set up iptables to make the linux system function as a router?
I think I need to set forwarding between the two interfaces, but I don't
understand the syntax of the command.

Thanks,

David A. Kirkwood

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Richard Nairn | 7 Apr 22:35 2009
Picon

Re: Linux system as a router

If you are doing NATting at the router you need a rule such as 
iptables -t nat -I POSTROUTING -o eth0 -j MASQ if you have a dynamic address, or
iptables -t nat -I POSTROUTING -o eth0 -j SNAT --to-source 1.2.3.4 if you have a static address

you also need net.ipv4.ip_forward=1 in /etc/sysctl.conf

Then have your default route go out your WAN interface.

On Tue, 07 Apr 2009 14:13:18 -0600, Kirkwood, David A. <DAVID.A.KIRKWOOD <at> saic.com> wrote:

> How do I set up iptables to make the linux system function as a router?
> I think I need to set forwarding between the two interfaces, but I don't
> understand the syntax of the command.
>
> Thanks,
>
> David A. Kirkwood
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo <at> vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Uwe Kiewel | 7 Apr 22:33 2009
Picon

Re: Linux system as a router

Kirkwood, David A. wrote:
> How do I set up iptables to make the linux system function as a router?
> I think I need to set forwarding between the two interfaces, but I don't
> understand the syntax of the command.

echo "1" > /proc/sys/net/ipv4/ip_forward

Maybe you will need masqerading

HTH,
	Uwe

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Pol | 9 Apr 10:14 2009
Picon

dialing phone numbers

Any hints about dialing numbers by your laptop keyboard to a phone connected
through modem?  
Thank you
---P

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Goodwin | 9 Apr 14:29 2009
Picon

Fw: Re: dialing phone numbers


--- On Thu, 4/9/09, Pol <xtekhne <at> gmail.com> wrote:
>Any hints about dialing numbers by your laptop keyboard to a phone
> connected through modem?  
 
It's been a long time, but If you want to connect to another modem you need to use a terminal program
like...minicom (maybe I don't remember the names)
 
If you just want to dial with the modem you can do something like:
echo "ATDTphonenumber" > /dev/modem
pick up the actual phone
echo "+++ATH" > /dev/modem
 
ATDT is AT (Attention) D(Dial) T(Tone) - Use tone signals to dial (as opposed to pulse)
 
+++ is modem escape
 
ATH is hangup the modem

--
JimFive

      
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

postmaster | 9 Apr 19:45 2009
Picon

(unknown)


--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Kirkwood, David A. | 14 Apr 18:29 2009
Picon

Python

I'm trying to decipher a pythom script someone gave me for
administration and I can't figure out what the symbol 9[18] means in a
regular expression as in

 re.compile('MezsageXYZ,9[18]\d\d')

I have most of the rest of it figured but I can't find this in the
Python book I'm using.

All help is appreciated,

David A. Kirkwood
SAIC

david.a.kirkwood <at> saic.com
kirkwoodd <at> saic.com

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Chris DiTrani | 14 Apr 18:33 2009

Re: Python

9[18] will match either "91" or "98".

-  
Thanks,

Chris

On Tue, 2009-04-14 at 12:29 -0400, Kirkwood, David A. wrote:
> I'm trying to decipher a pythom script someone gave me for
> administration and I can't figure out what the symbol 9[18] means in a
> regular expression as in
> 
>  re.compile('MezsageXYZ,9[18]\d\d')
> 
> I have most of the rest of it figured but I can't find this in the
> Python book I'm using.
> 
> All help is appreciated,
> 
> 
> David A. Kirkwood
> SAIC
> 
> david.a.kirkwood <at> saic.com
> kirkwoodd <at> saic.com
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo <at> vger.kernel.org
(Continue reading)


Gmane