You are not logged in.

#1 2012-10-02 06:30:57

thorjelly
Member
Registered: 2009-02-15
Posts: 41

[SOLVED] Routing wireless interface to ethernet with shorewall

I'm trying to follow this wiki guide https://wiki.archlinux.org/index.php/Router#Shorewall

Only, my external interface is a wireless connection that is on a LAN and my internal is an ethernet connection, which I am trying to connect a Windows machine to. It isn't working. I don't know what is wrong. Windows sees the connection but calls it an 'unidentified network'.

My dnsmasq file:

interface=eth0
expand-hosts
domain=foo.bar
dhcp-range=10.0.0.2,10.0.0.254,255.255.255.0,24h

My interfaces file:

###############################################################################
FORMAT 2
###############################################################################
#ZONE   INTERFACE       OPTIONS
net     wlan0           dhcp,tcpflags,nosmurfs,routefilter,logmartians,sourceroute=0
loc     eth0            dhcp,tcpflags,nosmurfs,routefilter,logmartians

My masq file:

wlan0                   10.0.0.0/8,\
                        169.254.0.0/16,\
                        172.16.0.0/12,\
                        192.168.0.0/16

ifconfig:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.1  netmask 255.255.255.0  broadcast 10.0.0.255
        ether bc:5f:f4:3b:99:89  txqueuelen 1000  (Ethernet)
        RX packets 4552  bytes 463455 (452.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 0  (Local Loopback)
        RX packets 2197  bytes 97224 (94.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2197  bytes 97224 (94.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 192.168.1.13  netmask 255.255.255.0  broadcast 192.168.1.255
        ether cc:b2:55:b5:7f:4d  txqueuelen 1000  (Ethernet)
        RX packets 26212  bytes 9546806 (9.1 MiB)
        RX errors 0  dropped 5912  overruns 0  frame 0
        TX packets 23780  bytes 8667281 (8.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Does anyone know what I need to do to get this to work? Am I doing something completely wrong?

Basically, ultimately I want to route the wireless to XEN's ethernet interface, but for now I am doing this to test if it works in a laptop.

Last edited by thorjelly (2012-10-02 15:25:24)

Offline

#2 2012-10-02 09:53:41

Linkas
Member
Registered: 2011-12-28
Posts: 25

Re: [SOLVED] Routing wireless interface to ethernet with shorewall

try to ping google server using ip adress: 46.28.247.98 on windows machine. Maybe there is only a problem with DNS

Offline

#3 2012-10-02 15:24:19

thorjelly
Member
Registered: 2009-02-15
Posts: 41

Re: [SOLVED] Routing wireless interface to ethernet with shorewall

I um... wow. I just started up my machine this morning and it worked. I don't get it. I had all the services up and running last night. Maybe it just needed a reset for some reason (linux, that is). Why would that be? I donno. But it works now, without any changes. Weird!

Sorry for wasting your time, guys. *facepalm*

Offline

Board footer

Powered by FluxBB