LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2019, 01:27 PM   #1
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 14.1, 14.2; Debian Jessie; Debian Stretch
Posts: 300

Rep: Reputation: 36
configuring a server as a router to a wireless connection


I have not been successful as configuring a computer to act as a dhcp server for the lan, and at the same time a router to allow the lan computers to use the wireless connection from the server. The lan based computers get addresses, and can talk to one another, but a traceroute from those computers shows that traffic stops at the server. When I was in an area with good Internet connectivity, I had no problems with to task, but now in a rural area, with only cell phone connectivity with the phone being turned into a wireless access point and the server connecting to it, only the sever retains connectivity.
 
Old 11-28-2019, 03:10 PM   #2
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,350

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
From the short description, I guess the IP Forwarding is not enabled and you could've configured the NAT wrong (iptables), or no NAT at all.

Please provide details about your setup:
- Slackware version
- output of the following commands:
Code:
/usr/sbin/ip addres show
/usr/sbin/ip route show
/usr/bin/cat /proc/sys/net/ipv4/ip_forward
/usr/sbin/iptables -vnL
There are a few HowTo's already available for a Gateway setup under Slackware:
https://docs.slackware.com/howtos:mi...uick_and_dirty
https://docs.slackware.com/howtos:ha...spberrypi3_wap
https://docs.slackware.com/howtos:ne..._slackware_box

And a recent thread dedicated on the subject:
https://www.linuxquestions.org/quest...ay-4175659159/
With a sample firewall you can use and adapt:
https://www.linuxquestions.org/quest...ml#post6044000
 
Old 11-28-2019, 04:19 PM   #3
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 14.1, 14.2; Debian Jessie; Debian Stretch
Posts: 300

Original Poster
Rep: Reputation: 36
Thank you so much. The only thing I had forgotten was to enable the masquerading in my iptables. everything else was fine. The computer is running Slackware14.2
 
Old 11-29-2019, 10:32 AM   #4
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado
Distribution: Slackware
Posts: 569

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by apolinsky View Post
Thank you so much. The only thing I had forgotten was to enable the masquerading in my iptables. everything else was fine. The computer is running Slackware14.2
Did you add something like this to your firewall?
Code:
/usr/sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
If yes then congrats! Time to mark the thread as "Solved"!
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless and wired connection to same router, wireless not working GeoNeil Linux - Wireless Networking 1 03-30-2011 05:45 AM
cannot ping wireless router or access router settings. wireless works, wired doesn't mattca Linux - Networking 1 06-09-2010 10:28 PM
Wireless G or N Router Networking, Ethernet, Wireless Adaptor and Connection Issues. RenCat General 1 02-06-2010 11:27 AM
Wireless card..Wireless router.. Slackware 10.2 ..Problems with Internet Connection. Storm Bringer Linux - Wireless Networking 4 03-23-2006 07:25 AM
wireless router to wireless router connection questions mister_math Linux - Wireless Networking 0 08-06-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration