Hi Sifu,
I have setup a Softether server in my VPS. The connection to the server is just fine but without internet access. Does anyone can help ?
Thank you
Need help on Centos Networking, Softether server issue
Need help on Centos Networking, Softether server issue
|
Feb 7 2018, 08:48 AM, updated 7y ago
Show posts by this member only | Post
#1
|
Senior Member
1,036 posts Joined: Mar 2006 |
Hi Sifu,
I have setup a Softether server in my VPS. The connection to the server is just fine but without internet access. Does anyone can help ? Thank you |
|
|
|
Feb 7 2018, 08:59 AM
Show posts by this member only | Post
#2
|
Junior Member
259 posts Joined: May 2009 |
eth0 is on not??
This post has been edited by harak_84: Feb 7 2018, 08:59 AM |
|
Feb 7 2018, 09:02 AM
Show posts by this member only | Post
#3
|
Junior Member
950 posts Joined: Nov 2014 From: Sandakan, Sabah |
did you see the networking is set on auto or manual?
|
|
Feb 7 2018, 11:41 AM
Show posts by this member only | Post
#4
|
Senior Member
1,036 posts Joined: Mar 2006 |
|
|
Feb 8 2018, 12:46 PM
Show posts by this member only | Post
#5
|
Senior Member
898 posts Joined: Jan 2003 From: ph/sbj/slgr |
QUOTE(lwk523 @ Feb 7 2018, 08:48 AM) Hi Sifu, Run these cmds (to check if IP forward is enabled and Masquerading is enabled): -I have setup a Softether server in my VPS. The connection to the server is just fine but without internet access. Does anyone can help ? Thank you # cat /proc/sys/net/ipv4/ip_forward # iptables -t nat -nvL |
|
Feb 8 2018, 02:26 PM
Show posts by this member only | Post
#6
|
Senior Member
1,036 posts Joined: Mar 2006 |
|
|
Feb 8 2018, 05:39 PM
Show posts by this member only | Post
#7
|
Senior Member
898 posts Joined: Jan 2003 From: ph/sbj/slgr |
|
|
Feb 8 2018, 08:18 PM
Show posts by this member only | Post
#8
|
Senior Member
1,036 posts Joined: Mar 2006 |
|
|
|
|
Feb 8 2018, 09:01 PM
Show posts by this member only | Post
#9
|
Senior Member
1,036 posts Joined: Mar 2006 |
rootlinux
Is that any way to understand that code ? I want to learn this This post has been edited by lwk523: Feb 8 2018, 09:01 PM |
|
Feb 8 2018, 10:02 PM
|
Junior Member
59 posts Joined: Sep 2009 |
QUOTE(lwk523 @ Feb 8 2018, 09:01 PM) you can try doing a #man iptables (full manual) or #iptables --help (help command) to see what arguments are passed along, and what are the options used. also https://linux.die.net/man/8/iptables iptables are firewall rules, this link will help explain the command you have used. https://explainshell.com/explain?cmd=iptabl...4+-j+MASQUERADE Half of the answers to commands are always in manuals, one quarter is in Google and the final quarter is from experience |
|
Feb 8 2018, 11:03 PM
|
Senior Member
898 posts Joined: Jan 2003 From: ph/sbj/slgr |
next you need to enable your iptables rules auto run each boot up, please read this below: -
https://www.howtoforge.com/internet-connect...rading-on-linux |
|
Feb 8 2018, 11:13 PM
|
Senior Member
1,036 posts Joined: Mar 2006 |
QUOTE(cicak360 @ Feb 8 2018, 10:02 PM) you can try doing a Thank you for the link and explainshell is really cool. #man iptables (full manual) or #iptables --help (help command) to see what arguments are passed along, and what are the options used. also https://linux.die.net/man/8/iptables iptables are firewall rules, this link will help explain the command you have used. https://explainshell.com/explain?cmd=iptabl...4+-j+MASQUERADE Half of the answers to commands are always in manuals, one quarter is in Google and the final quarter is from experience |
|
Feb 8 2018, 11:13 PM
|
Senior Member
1,036 posts Joined: Mar 2006 |
QUOTE(rootlinux @ Feb 8 2018, 11:03 PM) next you need to enable your iptables rules auto run each boot up, please read this below: - Thank you for the last step s https://www.howtoforge.com/internet-connect...rading-on-linux |
|
Feb 20 2018, 01:00 AM
|
Senior Member
1,036 posts Joined: Mar 2006 |
QUOTE(rootlinux @ Feb 8 2018, 05:39 PM) yes, there is no NAT enabled. run below command: - Hi rootlinux ,iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE then try your internet sharing after connect to softether Need your advice again. I need to create a port forwarding the one of the L2TP client with ip address 192.168.7.62 (internal). iptables -t nat -A PREROUTING -d 0.0.0.0/32 -p tcp -m tcp --dport 51413 -j DNAT --to-destination 192.168.7.62:51413 Is that correct for the above ? Thank you |
|
Feb 21 2018, 03:04 PM
|
Senior Member
898 posts Joined: Jan 2003 From: ph/sbj/slgr |
QUOTE(lwk523 @ Feb 20 2018, 01:00 AM) Hi rootlinux , it looks ok, if it doesn't work then replace '-d 0.0.0.0/32' to '-d public_IP/32' or '-d wan_interface_IP/32'Need your advice again. I need to create a port forwarding the one of the L2TP client with ip address 192.168.7.62 (internal). iptables -t nat -A PREROUTING -d 0.0.0.0/32 -p tcp -m tcp --dport 51413 -j DNAT --to-destination 192.168.7.62:51413 Is that correct for the above ? Thank you |
Change to: | 0.0226sec
0.41
6 queries
GZIP Disabled
Time is now: 28th March 2024 - 09:41 PM |