You are not logged in.
Pages: 1
Hello everyone. I need some help configuring my Arch router, I can't seem to make it work for the life of me!
At first I went about trying to make my host machine a router with this wiki. [https://wiki.archlinux.org/index.php/router] I tried filling in what I need (vlan,bridge, skipping on some firewall because I'm still still testing) to get my containers connected to the host machine. but when I thought I got everything configured right, it didn't work. I couldn't get an ip in my containers, through dhcp or static.
So I went back undid all changes and just follows the wiki, so I can rule out configurations error, but in the end i couldn't get my laptop to connect to the my machine (using the out-facing port as my wireless and my in-facing port as the Ethernet port).
What am i doing wrong? I just want a arch router to work with. I can figure out the rest about the containers getting a ip.
My main problem is getting the router to work. If anyone can help my it would be great!
here it my wireless profile for netctl
Description='Automatically generated profile by wifi-menu, will use this for his computer router as the Public Interface'
Interface=wlp0s20u14
Connection=wireless
Security=wpa
ESSID=nhome
IP=dhcp
Key=
here is my ethernet profile for netctl
Description='testing to make computer into a router, intern'
Interface=enp3s0
Connection=ethernet
IP=static
Address=(192.168.0.1/32)
here is my dhcp config file
# config file for dnsmasq
interface=enp3s0
expand-hosts
domain=foo.bar
dhcp-range=192.168.0.2,192.168.0.255,255.255.255.0,1h
and here is my iptables
Generated by iptables-save v1.4.20 on Fri Dec 6 17:48:00 2013
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
:TCP - [0:0]
:UDP - [0:0]
:fw-interfaces - [0:0]
:fw-open - [0:0]
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
-A INPUT -p udp -m conntrack --ctstate NEW -j UDP
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j TCP
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -j REJECT --reject-with icmp-proto-unreachable
-A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -j fw-interfaces
-A FORWARD -j fw-open
-A FORWARD -j REJECT --reject-with icmp-host-unreachable
-A TCP -p tcp -m tcp --dport 80 -j ACCEPT
-A TCP -p tcp -m tcp --dport 443 -j ACCEPT
-A TCP -p tcp -m tcp --dport 22 -j ACCEPT
-A UDP -p udp -m udp --dport 53 -j ACCEPT
-A fw-interfaces -i enp3s0 -j ACCEPT
COMMIT
# Completed on Fri Dec 6 17:48:00 2013
# Generated by iptables-save v1.4.20 on Fri Dec 6 17:48:00 2013
*nat
:PREROUTING ACCEPT [1788:448971]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -s 192.168.0.0/24 -o wlp0s20u14 -j MASQUERADE
COMMIT
# Completed on Fri Dec 6 17:48:00 2013
I'm not new to arch I just having a very noob problem that I can't figure out.
Thank you in advance!
Offline
What does this spit out?
cat /proc/sys/net/ipv4/ip_forwardOffline
Address=(192.168.0.1/32)
This won't set a proper route for the internal network.
As mentioned in the wiki article you linked to, use the right network address prefix: /24 in your case, according to your dnmasq config.
Offline
What does this spit out?
cat /proc/sys/net/ipv4/ip_forward
teekay, I got a.
0 so I.
echo 1 > /proc/sys/net/ipv4/ip_forward I thought I did this before, but i guess not.
Address=(192.168.0.1/32)
This won't set a proper route for the internal network.
As mentioned in the wiki article you linked to, use the right network address prefix: /24 in your case, according to your dnmasq config.
Your right aiBo, oops. let me just edit that
After those two suggestions I restarted all the service but still didn't get any ip on my laptop.
can it be a hardware thing? I am using a usb wifi from EnGenius. (version EUB9707)
Offline
teekay wrote:What does this spit out?
cat /proc/sys/net/ipv4/ip_forwardteekay, I got a.
0so I.
echo 1 > /proc/sys/net/ipv4/ip_forwardI thought I did this before, but i guess not.
This doesn't survive a reboot. To persist it set it in /etc/sysctl.d/99-sysctl.conf
net.ipv4.ip_forward = 1Offline
darkninja wrote:teekay wrote:What does this spit out?
cat /proc/sys/net/ipv4/ip_forwardteekay, I got a.
0so I.
echo 1 > /proc/sys/net/ipv4/ip_forwardI thought I did this before, but i guess not.
This doesn't survive a reboot. To persist it set it in /etc/sysctl.d/99-sysctl.conf
net.ipv4.ip_forward = 1
I see.
well I don't have that file, so i made one, file named 99-sysctl.conf in the directory /etc/sysctl.d/ and context of the file
net.ipv4.ip_forward = 1reboot just to check and it worked.
still not getting on ip on my laptop...
Im going to read over the article again and keep trying. thanks for the help so far.
I'll post back if I get some head way.
Offline
Pages: 1