Re: Setting up a home gateway/router

2014-05-24 Thread Steve Litt
On Sat, 24 May 2014 18:27:28 +0200 Pascal Hambourg wrote: > Huh ? NAT does not make things simpler but more complicated ! > What would be the benefit of using NAT here ? Security by obscurity. NAT is one more hassle the badguys have to get through to get to your stuff. As botnets turn into brute

Re: Setting up a home gateway/router

2014-05-24 Thread csanyipal
Pascal Hambourg writes: > csanyi...@gmail.com a écrit : >> Reco writes: >> >>> >>> /24 net allows 256 addresses. You've tried one (and is using another >>> one), so it's 254 to go. > > Less. .0 and .255 are reserved as network and broadcast addresses. > >> Also, I get no documentation else with

Re: Setting up a home gateway/router

2014-05-24 Thread Reco
On Sat, 24 May 2014 18:45:38 +0200 Pascal Hambourg wrote: > Reco a écrit : > > Pascal Hambourg wrote: > > > >>> Reco writes: > >>> > /24 net allows 256 addresses. You've tried one (and is using another > one), so it's 254 to go. > >> Less. .0 and .255 are reserved as network and broa

Re: Setting up a home gateway/router

2014-05-24 Thread Reco
Hi. On Sat, 24 May 2014 18:27:28 +0200 Pascal Hambourg wrote: > Reco a écrit : > > > > To keep things simple. Two host can communicate with each other without > > third party (router) only if they have their IPs from the same network. > > No. Only if they share the same broadcast domain (link

Re: Setting up a home gateway/router

2014-05-24 Thread Pascal Hambourg
Reco a écrit : > Pascal Hambourg wrote: > >>> Reco writes: >>> /24 net allows 256 addresses. You've tried one (and is using another one), so it's 254 to go. >> Less. .0 and .255 are reserved as network and broadcast addresses. > > I seen ISPs that advertise routes ending with 0. A vio

Re: Setting up a home gateway/router

2014-05-24 Thread Pascal Hambourg
Reco a écrit : > > To keep things simple. Two host can communicate with each other without > third party (router) only if they have their IPs from the same network. No. Only if they share the same broadcast domain (link layer network), regardless of IP addressing. Usually IP subnetting matches li

Re: Setting up a home gateway/router

2014-05-24 Thread Reco
On Sat, 24 May 2014 17:56:53 +0200 Pascal Hambourg wrote: > csanyi...@gmail.com a écrit : > > Reco writes: > > > >> > >> /24 net allows 256 addresses. You've tried one (and is using another > >> one), so it's 254 to go. > > Less. .0 and .255 are reserved as network and broadcast addresses. I

Re: Setting up a home gateway/router

2014-05-24 Thread Pascal Hambourg
csanyi...@gmail.com a écrit : > Reco writes: > >> >> /24 net allows 256 addresses. You've tried one (and is using another >> one), so it's 254 to go. Less. .0 and .255 are reserved as network and broadcast addresses. > Also, I get no documentation else with the static IP address from my ISP > b

Re: Setting up a home gateway/router

2014-05-24 Thread Reco
On Sat, 24 May 2014 17:45:35 +0200 csanyi...@gmail.com wrote: > Well, I tried the default gateway with IP address: > 217.17.111.1 > and > 217.17.111.254 > > None of them works. I rebooted every time when changed the default gw > address. Ok. Just to avoid sloppy wording I'd like to add that I me

Re: Setting up a home gateway/router

2014-05-24 Thread John Bleichert
On 05/24/2014 11:43 AM, Reco wrote: # service networking restart Good intention on your part, but this is bad advice. In /etc/init.d/networking 'force-reload' and 'restart' methods are marked as deprecated. Specifically corresponding script says: log_warning_msg "Running $0 $1 is deprecate

Re: Setting up a home gateway/router

2014-05-24 Thread csanyipal
Reco writes: > Hi. > > On Sat, 24 May 2014 15:06:52 +0200 > csanyi...@gmail.com wrote: > >> Well, I just tried that, but without success. > > /24 net allows 256 addresses. You've tried one (and is using another > one), so it's 254 to go. > > As I wrote, if you don't want to guess - check with yo

Re: Setting up a home gateway/router

2014-05-24 Thread Reco
Hi. On Sat, 24 May 2014 10:36:23 -0400 John Bleichert wrote: > You may have to restart the networking or network-manager service or > just reboot. I had to when I first setup static. Not sure why but it > needed more than ifdown/ifup. > > e.g.: > > # service networking restart Good intenti

Re: Setting up a home gateway/router

2014-05-24 Thread John Bleichert
On 05/24/2014 09:06 AM, csanyi...@gmail.com wrote: Well, I just tried that, but without success. /etc/network/interfaces --- auto eth0 iface eth0 inet static address 217.17.111.173 netmask 255.255.255.0 gateway 217.17.111.1 # ifdown eth0 # ifup eth0 $ ping 8.8.8

Re: Setting up a home gateway/router

2014-05-24 Thread Richard Hector
On 25/05/14 02:04, Reco wrote: > Hi. > > On Sat, 24 May 2014 15:06:52 +0200 > csanyi...@gmail.com wrote: > >> Well, I just tried that, but without success. > > /24 net allows 256 addresses. You've tried one (and is using another > one), so it's 254 to go. > > As I wrote, if you don't want to g

Re: Setting up a home gateway/router

2014-05-24 Thread Reco
Hi. On Sat, 24 May 2014 15:06:52 +0200 csanyi...@gmail.com wrote: > Well, I just tried that, but without success. /24 net allows 256 addresses. You've tried one (and is using another one), so it's 254 to go. As I wrote, if you don't want to guess - check with your ISP. Reco -- To UNSUBSCRI

Re: Setting up a home gateway/router

2014-05-24 Thread Richard Hector
On 25/05/14 01:06, csanyi...@gmail.com wrote: >> > Assuming that your 217.17.111.173/24 address on eth0 is correct, you >> > probably need to set up default gateway as 217.17.111.1 (and you really >> > should check it with your ISP, they are the only ones who know this). > I just mail to my ISP and

Re: Setting up a home gateway/router

2014-05-24 Thread csanyipal
Reco writes: > On Sat, 24 May 2014 12:21:05 +0200 > csanyi...@gmail.com wrote: > >> Yes, I thought as much, but don't know which IP address to add as a >> default gateway in my case? >> >> The command should look like this: >> # route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.1 dev eth0 >

Re: Setting up a home gateway/router

2014-05-24 Thread Reco
Hi. On Sat, 24 May 2014 12:21:05 +0200 csanyi...@gmail.com wrote: > Yes, I thought as much, but don't know which IP address to add as a > default gateway in my case? > > The command should look like this: > # route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.1 dev eth0 > ?

Re: Setting up a home gateway/router

2014-05-24 Thread csanyipal
Mike McGinn writes: > Comments below > On Friday, May 23, 2014 11:52:43 csanyi...@gmail.com wrote: >> csanyi...@gmail.com writes: >> > So I tried with this setup: >> > iface eth0 inet static >> > >> > address 217.17.111.173 >> > netmask 255.255.255.0 >> >> but it doesn't work. > I bui

Re: Setting up a home gateway/router

2014-05-23 Thread Filip
On Fri, 23 May 2014 06:57:15 +0200 csanyi...@gmail.com wrote: > Hi, > > I wish to set up my home headless power pc box as a gateway/router > ( GW ). I can connect to it with SSH only. > > Before, I set up this GW to get an IP address from my ISP with > dhcp.client. > > Now, I ask a static IP ad

Re: Setting up a home gateway/router

2014-05-23 Thread csanyipal
Ron Leach writes: > On 23/05/2014 16:52, csanyi...@gmail.com wrote: >> csanyi...@gmail.com writes: >> >>> So I tried with this setup: >>> iface eth0 inet static >>> address 217.17.111.173 >>> netmask 255.255.255.0 >> >> but it doesn't work. >> >> Say, the output of the command 'ping g

Re: Setting up a home gateway/router

2014-05-23 Thread Curt
On 2014-05-23, csanyi...@gmail.com wrote: > csanyi...@gmail.com writes: > >> So I tried with this setup: >> iface eth0 inet static >> address 217.17.111.173 >> netmask 255.255.255.0 > > but it doesn't work. I don't know anything about it, but it seems something is missing here like gat

Re: Setting up a home gateway/router

2014-05-23 Thread Mike McGinn
Comments below On Friday, May 23, 2014 11:52:43 csanyi...@gmail.com wrote: > csanyi...@gmail.com writes: > > So I tried with this setup: > > iface eth0 inet static > > > > address 217.17.111.173 > > netmask 255.255.255.0 > > but it doesn't work. I built a gateway / router / vpn / firewa

Re: Setting up a home gateway/router

2014-05-23 Thread Ron Leach
On 23/05/2014 16:52, csanyi...@gmail.com wrote: csanyi...@gmail.com writes: So I tried with this setup: iface eth0 inet static address 217.17.111.173 netmask 255.255.255.0 but it doesn't work. Say, the output of the command 'ping gnu.org' is: ping: unknown host gnu.org My ISP

Re: Setting up a home gateway/router

2014-05-23 Thread csanyipal
csanyi...@gmail.com writes: > So I tried with this setup: > iface eth0 inet static > address 217.17.111.173 > netmask 255.255.255.0 but it doesn't work. Say, the output of the command 'ping gnu.org' is: ping: unknown host gnu.org >>> My ISP >>> | >>> --- eth0 ( GW ) --- eth1 >>>

Re: Setting up a home gateway/router

2014-05-23 Thread csanyipal
Curt writes: > On 2014-05-23, Pascal Hambourg wrote: > >>> Do you mean that eth0 on GW has a static IP address? >> >> No, the OP wrote that internet-facing eth0 has a DHCP address from the ISP. > > I understood that *before* he had a DHCP address from his ISP, but *now* > he has a static address

Re: Setting up a home gateway/router

2014-05-23 Thread csanyipal
Hi Vincent, "Vincent W. Chen" writes: > On Thu, May 22, 2014 at 9:57 PM, wrote: >> I wish to set up my home headless power pc box as a gateway/router ( GW ). >> I can connect to it with SSH only. >> >> Before, I set up this GW to get an IP address from my ISP with >> dhcp.client. Before eth0

Re: Setting up a home gateway/router

2014-05-23 Thread Curt
On 2014-05-23, Pascal Hambourg wrote: >> Do you mean that eth0 on GW has a static IP address? > > No, the OP wrote that internet-facing eth0 has a DHCP address from the ISP. I understood that *before* he had a DHCP address from his ISP, but *now* he has a static address (only mentioning what he

Re: Setting up a home gateway/router

2014-05-23 Thread Steve Litt
On Fri, 23 May 2014 06:57:15 +0200 csanyi...@gmail.com wrote: > Hi, > > I wish to set up my home headless power pc box as a gateway/router > ( GW ). I can connect to it with SSH only. > > Before, I set up this GW to get an IP address from my ISP with > dhcp.client. > > Now, I ask a static IP ad

Re: Setting up a home gateway/router

2014-05-23 Thread Pascal Hambourg
Vincent W. Chen a écrit : > > Do you mean that eth0 on GW has a static IP address? No, the OP wrote that internet-facing eth0 has a DHCP address from the ISP. > # If you have IPv6 > iface eth0 inet6 static > address ::1 > netmask 64 Nonsense. ::1 is for the loopback interface only. If y

Re: Setting up a home gateway/router

2014-05-22 Thread Vincent W. Chen
On Thu, May 22, 2014 at 9:57 PM, wrote: > Hi, > > I wish to set up my home headless power pc box as a gateway/router ( GW ). > I can connect to it with SSH only. > > Before, I set up this GW to get an IP address from my ISP with > dhcp.client. > > Now, I ask a static IP address for this GW and do