[lugm.org] Discuss Digest, Vol 19, Issue 2

Keshwarsingh Nadan keshwarsingh.nadan at servihoo.net
Thu Dec 5 19:13:35 UTC 2013


add below for nat


iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE



-- 
Regards,
Keshwarsingh


On Thu, Dec 5, 2013 at 11:09 PM, Ajay R Ramjatan <ajay.ramjatan at gmail.com>wrote:

> #sysctl net.ipv4.ip_forward
> net.ipv4.ip_forward = 0
>
> If it is set to 0, that box wont act as a router.
> First, set that to 1 using
>
> #sysctl net.ipv4.ip_forward=1
>
> You're advised to set this in /etc/sysctl.conf so it works across reboots.
> As far as firewalling is concerned, I used shorewall with lots of success
> between years 2002 to 2006.
>
> Also move DHCP services from your Orange router to your Gentoo box or
> allow the appropriate rules through.
>
>
> On Tue, Dec 3, 2013 at 4:41 PM, selven <pcthegreat at gmail.com> wrote:
>
>> Because Gentoo is flexible i would say.
>>
>> two network cards.
>>
>>
>> On Tue, Dec 3, 2013 at 4:35 PM, Nadeem M Nayeck <
>> nadeem.m.nayeck at gmail.com> wrote:
>>
>>> Thanks for the tips. I think I need 2 sub-networks here.
>>> Well, to reply those who asked why Gentoo, because of its very small
>>> memory footprint and flexibility.
>>>
>>>
>>> On 3 December 2013 16:24, selven <pcthegreat at gmail.com> wrote:
>>>
>>>> install turtle firewall on it to get a web interface for the firewall.
>>>> install isc-dhcpd
>>>> install hostapd
>>>> enable ip forwarding
>>>>
>>>>
>>>> You've got enough to google and make it to work! Good luck
>>>>
>>>> Cheers.
>>>> +selven
>>>>
>>>>
>>>> On Tue, Dec 3, 2013 at 3:59 PM, <ashley.babajee at abaxservices.com>wrote:
>>>>
>>>>> Make use of static IP's , the Win7 machine gateway should be the same
>>>>> as the Gentoo's IP address.
>>>>> Why do you want to use Gentoo as a router ?
>>>>>
>>>>>
>>>>>
>>>>> Ashley Babajee
>>>>> IT Services Officer
>>>>> Email: ashley.babajee at abaxservices.com
>>>>> Direct Line: +230 403 6110
>>>>> Mobile: +230 5753 2566
>>>>>
>>>>> Abax Corporate Services Ltd
>>>>> 6th Floor, Tower A, 1 CyberCity,
>>>>> Ebene, Mauritius
>>>>> Tel: +230 403 6000
>>>>> Fax: +230 403 6060
>>>>> BRN: C06025366
>>>>>
>>>>> -----Original Message-----
>>>>> From: Discuss [mailto:discuss-bounces at discuss.lugm.org] On Behalf Of
>>>>> discuss-request at discuss.lugm.org
>>>>> Sent: 03 December, 2013 3:00 PM
>>>>> To: discuss at discuss.lugm.org
>>>>> Subject: Discuss Digest, Vol 19, Issue 2
>>>>>
>>>>> Send Discuss mailing list submissions to
>>>>>         discuss at discuss.lugm.org
>>>>>
>>>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>>>
>>>>> http://discuss.lugm.org/mailman/listinfo/discuss_discuss.lugm.org
>>>>> or, via email, send a message with subject or body 'help' to
>>>>>         discuss-request at discuss.lugm.org
>>>>>
>>>>> You can reach the person managing the list at
>>>>>         discuss-owner at discuss.lugm.org
>>>>>
>>>>> When replying, please edit your Subject line so it is more specific
>>>>> than "Re: Contents of Discuss digest..."
>>>>>
>>>>>
>>>>> Today's Topics:
>>>>>
>>>>>    1. help configuring linux as a router (Nadeem M Nayeck)
>>>>>    2. Re: help configuring linux as a router (Nadeem M Nayeck)
>>>>>    3. Re: help configuring linux as a router (Yasir MX)
>>>>>    4. Re: help configuring linux as a router (Nadeem M Nayeck)
>>>>>
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>>
>>>>> Message: 1
>>>>> Date: Tue, 3 Dec 2013 12:07:38 +0400
>>>>> From: Nadeem M Nayeck <nadeem.m.nayeck at gmail.com>
>>>>> To: LUGM Discuss Mailing List <discuss at lugm.org>
>>>>> Subject: [lugm.org] help configuring linux as a router
>>>>> Message-ID:
>>>>>         <
>>>>> CACYm6LZTnx-QOkDGrLK2DSUMn1Yd7xpGJoawnFWAAW5xKhvKqA at mail.gmail.com>
>>>>> Content-Type: text/plain; charset="utf-8"
>>>>>
>>>>> Hi Guys,
>>>>>
>>>>> I am looking for help on this things I've been fighting since a week.
>>>>>
>>>>> This is my setup:
>>>>> Orange ADSL Router (DHCP enabled) ---- Gentoo Linux ---
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: <
>>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/attachments/20131203/f97cbe4b/attachment-0001.html
>>>>> >
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Message: 2
>>>>> Date: Tue, 3 Dec 2013 12:12:02 +0400
>>>>> From: Nadeem M Nayeck <nadeem.m.nayeck at gmail.com>
>>>>> To: LUGM Discuss Mailing List <discuss at lugm.org>
>>>>> Subject: Re: [lugm.org] help configuring linux as a router
>>>>> Message-ID:
>>>>>         <CACYm6LadDsmL2=
>>>>> B_gXp+rkEQe9pQoJ+HPJAJVWQv5dVtVrqn0g at mail.gmail.com>
>>>>> Content-Type: text/plain; charset="utf-8"
>>>>>
>>>>> Sorry i accidentally sent it without completing it.
>>>>>
>>>>> Now I have an Orange ADSL Router. Connected to the LAN i have 3
>>>>> computers.
>>>>> One running  Gentoo and 2 windows 7.
>>>>> Now, I have two VPNC Clients connected to 2 CISCO VPNS on the Gentoo
>>>>> Linux.
>>>>> Routing Table is allright because I can ping Google.mu, machine from
>>>>> VPN-A, and machine from VPN-B successfully.
>>>>>
>>>>> Now, how do I configure the Windows Machine to use the Gentoo Linux
>>>>> machine as a router?
>>>>>
>>>>> My goal behind this setup is to have the Gentoo act as a router,
>>>>> instead of connecting to the respective VPNs on the Windows machines.
>>>>> (Besides, one can only connect to 1 VPN at a time on CISCO VPN Client on
>>>>> Windows )
>>>>>
>>>>> regards,
>>>>> Nadeem
>>>>>
>>>>>
>>>>> On 3 December 2013 12:07, Nadeem M Nayeck <nadeem.m.nayeck at gmail.com>
>>>>> wrote:
>>>>>
>>>>> > Hi Guys,
>>>>> >
>>>>> > I am looking for help on this things I've been fighting since a week.
>>>>> >
>>>>> > This is my setup:
>>>>> > Orange ADSL Router (DHCP enabled) ---- Gentoo Linux ---
>>>>> >
>>>>> >
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: <
>>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/attachments/20131203/f903eedd/attachment-0001.html
>>>>> >
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Message: 3
>>>>> Date: Tue, 3 Dec 2013 12:13:00 +0400
>>>>> From: Yasir MX <yasirmx at hotmail.com>
>>>>> To: LUGM Discuss Mailing List <discuss at discuss.lugm.org>
>>>>> Subject: Re: [lugm.org] help configuring linux as a router
>>>>> Message-ID: <DUB120-W338D6A84A63AE5E1E634E5AAD50 at phx.gbl>
>>>>> Content-Type: text/plain; charset="iso-8859-1"
>>>>>
>>>>>
>>>>> http://www.yourownlinux.com/2013/07/how-to-configure-ubuntu-as-router.htmlhttp://newbiedoc.sourceforge.net/networking/homegateway.html
>>>>> There's also ClearOS which is used specially for this :)
>>>>>
>>>>> Date: Tue, 3 Dec 2013 12:07:38 +0400
>>>>> From: nadeem.m.nayeck at gmail.com
>>>>> To: discuss at lugm.org
>>>>> Subject: [lugm.org] help configuring linux as a router
>>>>>
>>>>> Hi Guys,
>>>>>
>>>>> I am looking for help on this things I've been fighting since a week.
>>>>>
>>>>> This is my setup:
>>>>> Orange ADSL Router (DHCP enabled) ---- Gentoo Linux ---
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> __________________________________________________________
>>>>> Linux User Group of Mauritius (LUGM) Discuss mailing list
>>>>> Website: http://lugm.org
>>>>> Mailing list archive:
>>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
>>>>> Forum: http://lugm.org/forum/
>>>>> IRC: #linux.mu on Freenode
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: <
>>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/attachments/20131203/2802c1a1/attachment-0001.html
>>>>> >
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Message: 4
>>>>> Date: Tue, 3 Dec 2013 12:15:27 +0400
>>>>> From: Nadeem M Nayeck <nadeem.m.nayeck at gmail.com>
>>>>> To: LUGM Discuss Mailing List <discuss at discuss.lugm.org>
>>>>> Subject: Re: [lugm.org] help configuring linux as a router
>>>>> Message-ID:
>>>>>         <CACYm6LaTyXhfhJY4MM=
>>>>> E2WLVNrroFO42Ms62omqXQTa-N6r8qg at mail.gmail.com>
>>>>> Content-Type: text/plain; charset="utf-8"
>>>>>
>>>>> Can't change OS, Gentoo what I am used to, since a few years now.
>>>>> Do I need to modify IPTABLES even though my routing table is allright?
>>>>>
>>>>> regards,
>>>>> Nadeem
>>>>>
>>>>>
>>>>> On 3 December 2013 12:13, Yasir MX <yasirmx at hotmail.com> wrote:
>>>>>
>>>>> >
>>>>> http://www.yourownlinux.com/2013/07/how-to-configure-ubuntu-as-router.
>>>>> > html http://newbiedoc.sourceforge.net/networking/homegateway.html
>>>>> >
>>>>> > There's also ClearOS which is used specially for this :)
>>>>> >
>>>>> > ------------------------------
>>>>> > Date: Tue, 3 Dec 2013 12:07:38 +0400
>>>>> > From: nadeem.m.nayeck at gmail.com
>>>>> > To: discuss at lugm.org
>>>>> > Subject: [lugm.org] help configuring linux as a router
>>>>> >
>>>>> >
>>>>> > Hi Guys,
>>>>> >
>>>>> > I am looking for help on this things I've been fighting since a week.
>>>>> >
>>>>> > This is my setup:
>>>>> > Orange ADSL Router (DHCP enabled) ---- Gentoo Linux ---
>>>>> >
>>>>> >
>>>>> > __________________________________________________________ Linux User
>>>>> > Group of Mauritius (LUGM) Discuss mailing list Website:
>>>>> http://lugm.orgMailing list archive:
>>>>> > http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/ Forum:
>>>>> > http://lugm.org/forum/ IRC: #linux.mu on Freenode
>>>>> >
>>>>> > __________________________________________________________
>>>>> > Linux User Group of Mauritius (LUGM) Discuss mailing list
>>>>> > Website: http://lugm.org
>>>>> > Mailing list archive:
>>>>> > http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
>>>>> > Forum: http://lugm.org/forum/
>>>>> > IRC: #linux.mu on Freenode
>>>>> >
>>>>> -------------- next part --------------
>>>>> An HTML attachment was scrubbed...
>>>>> URL: <
>>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/attachments/20131203/283a6db1/attachment-0001.html
>>>>> >
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> Subject: Digest Footer
>>>>>
>>>>> ________________________________________________________
>>>>> Linux User Group of Mauritius (LUGM) Discuss mailing list
>>>>> Website: http://lugm.org
>>>>> Mailing list archive:
>>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
>>>>> Forum: http://lugm.org/forum/
>>>>> IRC: #linux.mu on Freenode
>>>>>
>>>>> ------------------------------
>>>>>
>>>>> End of Discuss Digest, Vol 19, Issue 2
>>>>> **************************************
>>>>>
>>>>> __________________________________________________________
>>>>> Linux User Group of Mauritius (LUGM) Discuss mailing list
>>>>> Website: http://lugm.org
>>>>> Mailing list archive:
>>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
>>>>> Forum: http://lugm.org/forum/
>>>>> IRC: #linux.mu on Freenode
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Pirabarlen Cheenaramen *| $3|v3n
>>>> L'escalier
>>>>
>>>> mobile: +230 549 24 918
>>>>  <god at hackers.mu>
>>>> blog <http://thegodof.net> || fb <http://godify.me> || pgp<http://hackers.mu/pgpselven.txt>
>>>>  /*memory is like prison*/
>>>> (user==selven)?free(user):user=malloc(sizeof(brain));
>>>> P Save electricity & disk space. Cat this mail to >/dev/null 2>&1
>>>> after use.
>>>>
>>>> __________________________________________________________
>>>> Linux User Group of Mauritius (LUGM) Discuss mailing list
>>>> Website: http://lugm.org
>>>> Mailing list archive:
>>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
>>>> Forum: http://lugm.org/forum/
>>>> IRC: #linux.mu on Freenode
>>>>
>>>
>>>
>>> __________________________________________________________
>>> Linux User Group of Mauritius (LUGM) Discuss mailing list
>>> Website: http://lugm.org
>>> Mailing list archive:
>>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
>>> Forum: http://lugm.org/forum/
>>> IRC: #linux.mu on Freenode
>>>
>>
>>
>>
>> --
>> *Pirabarlen Cheenaramen *| $3|v3n
>> L'escalier
>>
>> mobile: +230 549 24 918
>>  <god at hackers.mu>
>> blog <http://thegodof.net> || fb <http://godify.me> || pgp<http://hackers.mu/pgpselven.txt>
>>  /*memory is like prison*/
>> (user==selven)?free(user):user=malloc(sizeof(brain));
>> P Save electricity & disk space. Cat this mail to >/dev/null 2>&1 after
>> use.
>>
>> __________________________________________________________
>> Linux User Group of Mauritius (LUGM) Discuss mailing list
>> Website: http://lugm.org
>> Mailing list archive:
>> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
>> Forum: http://lugm.org/forum/
>> IRC: #linux.mu on Freenode
>>
>
>
> __________________________________________________________
> Linux User Group of Mauritius (LUGM) Discuss mailing list
> Website: http://lugm.org
> Mailing list archive:
> http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/
> Forum: http://lugm.org/forum/
> IRC: #linux.mu on Freenode
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://discuss.lugm.org/pipermail/discuss_discuss.lugm.org/attachments/20131205/b61b3fee/attachment.html>


More information about the Discuss mailing list