Setting the mtu in Ipcop/Ip address for UTD access in Ipcop

seburn

Expert Member
Joined
Apr 25, 2005
Messages
1,127
Firstly I would like to thank jmn for providing the core information that I have used to provide this idiots (like me) guide.

You will need (google for the underlined)
1. WinSCP to access Ipcop box's files from another windows pc (1.58 MB)
2. EditPad Pro to change linux text files in windows
3. You must use the pppOE dialer in IpCop ... not the pppOE plugin for the mtu settings to work -this is a setting ... no downloads needed

Method

[edit thx 8321]
IPCop's SSH Server listens on port 222.
Make sure you enable it under System->SSH Access.
You don't need a rule to access this.
[/edit]

1. Login to Ipcop machine using your root user and password use port 222 and NOT the default port 22 in WinSCP
2. IMPORTANT: Make a copy of your existing rc.red
The best way to do this is to copy the file from /etc/rc.d to your pc's harddrive rename it to rc.red.bkup and then copy it back
Then you can restore with by reversing the procedure
3. Now copy the rc.red again onto your harddrive
4. Open it using edit pad

If you do not wish to access UTD skip steps 5 & 6

5. Find these lines (search for 1.1.1.1)
Code:
#system ("/sbin/ifconfig", $netsettings{'RED_DEV'}, "1.1.1.1",
 system ("/sbin/ifconfig", $netsettings{'RED_DEV'}, "1.1.1.1",
#"netmask", "255.255.255.0", "broadcast", "1.1.1.255", "up");
 "netmask", "255.255.255.0", "broadcast", "192.168.250.255", "up")
6. Change to (1.1.1.1 ->192.168.250.1 in one location)
Code:
#system ("/sbin/ifconfig", $netsettings{'RED_DEV'}, "1.1.1.1",
system ("/sbin/ifconfig", $netsettings{'RED_DEV'}, "192.168.250.1",
#"netmask", "255.255.255.0", "broadcast", "1.1.1.255", "up");
"netmask", "255.255.255.0", "broadcast", "192.168.250.255", "up")
7. FInd these lines (search for mtu)
Code:
push(@pppcommand, ('noipdefault', 'default-asyncmap',  
'defaultroute', 'hide-password', 'local',
'mtu', '1492', 'mru', '1492', 'noaccomp', 'noccp',
'nobsdcomp', 'nodeflate', 'nopcomp', 'novj', 'novjccomp',
'user', $pppsettings{'USERNAME'}, 'lcp-echo-interval', '20',
'lcp-echo-failure', '3', 'lcp-max-configure', '50',

8. change to (mtu&mru->1352)
Code:
push(@pppcommand, ('noipdefault', 'default-asyncmap',  
'defaultroute', 'hide-password', 'local',
'mtu', '1352', 'mru', '1352', 'noaccomp', 'noccp',
'nobsdcomp', 'nodeflate', 'nopcomp', 'novj', 'novjccomp',
'user', $pppsettings{'USERNAME'}, 'lcp-echo-interval', '20',
'lcp-echo-failure', '3', 'lcp-max-configure', '50',
9. save the rc.red file
10. copy over the rc.red file on the Ipcop box using WinSCP

11. You'll also have to unplug and plug in Iburst UTD to apply changes to Ip address for UTD access and will have to disconnect and reconnect only to change the mtu.

Other methods of changing mtu change the setting often on the nic rather than in the pppOE connection.

If I have stated anything incorrect or am incorrect in any way please inform me and I will change this post. This worked for me though.
 
Last edited:

jmn

Senior Member
Joined
Feb 19, 2005
Messages
551
Tx for the detailed instructions, I think it may be added be added to http://www.unchained.co.za/

BTW, MTU / MRU of 1432 seemed to work well for me, have just updated IPCop and didn't touch these settings again, so using the default of 1492 at the moment, but other pc's are set to 1424.
 

8321

Well-Known Member
Joined
Dec 13, 2004
Messages
389
Important help from thisgeek

IPCop's SSH Server listens on port 222.

Make sure you enable it under System->SSH Access.

You don't need a rule to access this.
Last edited by thisgeek : 16-08-2005 at 02:02 PM.
 

8321

Well-Known Member
Joined
Dec 13, 2004
Messages
389
jmn said:
BTW, MTU / MRU of 1432 seemed to work well for me, have just updated IPCop and didn't touch these settings again, so using the default of 1492 at the moment, but other pc's are set to 1424.
Sorry to hijack thread:
Did you update 1.4.7. and 1.4.8? I did today and found that addons have gone missing. Tried uninstalling and installing to no avail.
 

seburn

Expert Member
Joined
Apr 25, 2005
Messages
1,127
I thought they said to remove them all install new addon server and then install them again ... I was getting those updates and will be downloading a few addons soon (err... next week)
 

jmn

Senior Member
Joined
Feb 19, 2005
Messages
551
Only read after the updates that one's supposed to uninstall, update and reinstall. So I uninstalled all the addons and reinstalled them, then did the mod for UTD access. Oh, and there's a new addon server to install which is supposed to prevent future messing up of the language files during updates. Actually need to get the new addon server before reinstalling...
 

PDerek

Member
Joined
May 11, 2005
Messages
19
IPcop MTU

Nice post Seburn. Just to add: if you use putty and ssh on prt 222 you can use VI to edit rc.rd directly.

now, I'm no linux guru! but here goes:

cd /ect/rc.d
vi rc.red
(scroll down / find mtu and mru under pppoe dial section )

hit a in vi (for append)
change values for mtu and mru as per your post
hit escape key (puts vi in command mode)
hit w and q ( writes and quits vi editor)

I also noted that the updates received for ipcop always overwrite the rc.red file,
so u need to change these settings after upgrading to 1.4.7 and 1.4.8
 

jmn

Senior Member
Joined
Feb 19, 2005
Messages
551
I've at last made backups (fed up with editing) of /etc/rc.d/rc.red and my tweaks to Net-Traffic (/home/httpd/cgi-bin/traffic.cgi : to show total red and remainder from 3GB for current month)
 
Top